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 98ae52b27792da45cfc097306b735963af0f8029
parent a1f87c3b57c96025a0f2f849f1f8e79f1cd4671e
Author: Ilyass Sfar <42755577+cloud0x9@users.noreply.github.com>
Date:   Thu, 13 Feb 2020 19:21:33 -0500

Update ParseData.java
Diffstat:
Msrc/main/java/ScheduleCreator/ParseData.java | 14+++++---------
1 file changed, 5 insertions(+), 9 deletions(-)

diff --git a/src/main/java/ScheduleCreator/ParseData.java b/src/main/java/ScheduleCreator/ParseData.java @@ -7,18 +7,14 @@ public class ParseData { static void String() throws IOException { - //Hard code example, 2 is 2020, and 22 is CSC on the uncg webiste - FileWriter FileW = ScheduleCreator.SaveData.WriteFile("TestFile.txt",2,22); - BufferedWriter BufferW = new BufferedWriter(FileW); - //this it the regex expression it 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 - ("[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"); - - //("\\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"); + 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 + // A FileReader, this will be changed later BufferedReader r = new BufferedReader(new FileReader("TestFile.txt")); // matching lines with regex expression