Schedule-Creator

Java GUI to create schedules for UNCG students
git clone git://git.wrycode.com/wrycode/archive/Schedule-Creator.git
Log | Files | Refs | README

commit 544b99229146a90999ff854b78456fc5be3f9bba
parent eab279e7993991148397e5ad8304626cf4917c1d
Author: Ilyass Sfar <42755577+cloud0x9@users.noreply.github.com>
Date:   Sat, 15 Feb 2020 13:33:54 -0500

Delete ParseData.java
Diffstat:
DSchedule-Creator-master 2/src/ScheduleCreator/ParseData.java | 33---------------------------------
1 file changed, 0 insertions(+), 33 deletions(-)

diff --git a/Schedule-Creator-master 2/src/ScheduleCreator/ParseData.java b/Schedule-Creator-master 2/src/ScheduleCreator/ParseData.java @@ -1,32 +0,0 @@ -package ScheduleCreator; -import java.io.*; -import java.util.regex.*; - -public class ParseData { - - static void parse() throws IOException { - - //this is the regex expression that grabs abbreviated class name with section, time, and day of the class - // ex. CSC 340-01, 5:30-6:45, T H (days) - Pattern regex = Pattern.compile("\\b[A-Z]{3}\\b.\\b[0-9]{3}\\b.* [0-9]{2}\\b|([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]|([AaPp][Mm])\\b|TR\\b|MW\\b|MWF\\b|M\\b|T\\b|W\\b|R\\b|F\\b/g"); - - //("[0-9]{5}|\b[A-Z]{3}\b.\b[0-9]{3}\b.* [0-9]{2}\b|([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]|([AaPp][Mm])\b|TR\b|MW\b|MWF\b|M\b|T\b|W\b|R\b|F\b"); - // A FileReader, this will be changed later - BufferedReader r = new BufferedReader(new FileReader("TestFile.txt")); - - // matching lines with regex expression - String line; - while ((line = r.readLine()) != null) { - // find lines that match - Matcher regexMatcher = regex.matcher(line); - while (regexMatcher.find()) { - // Get the starting position of the text - int start = regexMatcher.start(0); - // Get ending position - int end = regexMatcher.end(0); - // Print whatever matched. - System.out.println(line.substring(start, end)); - } - } - } -}- \ No newline at end of file