RonW has asked for the wisdom of the Perl Monks concerning the following question:
Greetings Wise Ones
I am parsing data files which include lines like:
123/; #<The simplified version of my regex is:
/\s([#]\S)(.*)/In my tests, the first line was not matched, but the second line was.
what am I overlooking?
I am using Active Perl 5.16.3 as this is what is currently approved by my employer's IT department.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: capturing optional text with a regex
by toolic (Bishop) on Mar 31, 2014 at 20:55 UTC | |
by RonW (Parson) on Mar 31, 2014 at 21:05 UTC | |
|
Re: capturing optional text with a regex
by kcott (Archbishop) on Apr 01, 2014 at 12:32 UTC |