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 8f7c54302f6a495daf2a65551663ea80624a031a
parent 6cb64aa6b05ef1f22ac215515b544358396a0835
Author: Ilyass Sfar <42755577+cloud0x9@users.noreply.github.com>
Date:   Sat, 15 Feb 2020 13:32:59 -0500

Delete ParseData.java
Diffstat:
DParseData.java | 35-----------------------------------
1 file changed, 0 insertions(+), 35 deletions(-)

diff --git a/ParseData.java b/ParseData.java @@ -1,35 +0,0 @@ -import java.io.*; -import java.util.regex.*; - -public class ParseData { - - static void String() throws IOException { - - //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"); - - //("[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)); - - - } - } - } -}