kla587 / Internet-System-Dev

0 stars 0 forks source link

Parsing file #33

Closed kla587 closed 8 years ago

kla587 commented 8 years ago

Ran into issues parsing the outputted maven file, entitled mvn.txt.

Code that ran in RegEx101 and matched correctly: [^ ]+-\s+(\S+)(\n?|?\s+?.\n?|?\s+?.)

Seemed to be having issues with the [^] to denote to look at the start of the line in Perl.

kla587 commented 8 years ago

Reworked pasre using RegExr instead of RegEx101 to get three levels successfully.

level 1 [^ ]+-\s+(\S+) level 2 [^ ]|\s\s-\s(\S+) or [^ ]|\s\s+-\s(\S+) level 3 [^ ]|\s\s|\s+.*?\s(\S+)