EDIT: I had figured it out. I had changed my regex to:
And it works.
I have tried to research this, but all I could find were situations different than mine, or just basic information on regex, and none of that helped me. I understand regex to a point, I'm still kind new to it. Java, on the other hand, not really new. Now the problem I am having is I need to figure out how to match a scanned line of text from a file to a regex with an enum string, which I got half of that to work, I just need to regex part to work. I got regex working elsewhere in my code, but not in this one specific set of code. The part I am trying to debug is this part which is being used here. If anyone could walk me through the regex part then that would be awesome! Thanks in advanced!