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 84b3f1aa2e4ef19c94b7cd8da65e970323d72040
parent 54f1071e31ac9459e00f3d1ec2be4edebc435114
Author: Ilyass Sfar <42755577+cloud0x9@users.noreply.github.com>
Date:   Wed,  5 Feb 2020 19:45:40 -0500

Delete ParseData.java
Diffstat:
Dsrc/SchedueData/ParseData.java | 43-------------------------------------------
1 file changed, 0 insertions(+), 43 deletions(-)

diff --git a/src/SchedueData/ParseData.java b/src/SchedueData/ParseData.java @@ -1,42 +0,0 @@ -package SchedueData; - -import java.io.*; -import java.util.regex.*; - - - -public class ParseData { - - static void String() throws IOException { - - - FileWriter FileW = SchedueData.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 - ("\\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"); - - // ("\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"); - // A FileReader (see the I/O chapter) - 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