in reply to Re: No tools? Use Perl?!
in thread No tools? Use Perl?!
My forward slash is there. It's just after the filp-flp. No?
...you don’t need to backslash the < character. Also, the regex will be easier to read if you change the delimitersprint if (/^\<ReportHost/../^\<\/ReportHost>/); # ^
Thanks for the tip! Can you explain or link me to an explaination of the new syntax?
Note that the ^ metacharacter in a regex matches the beginning of a line. Is this what you want?Intinctively, yes since I'm expecting to see it at the beginning of the line. Although, you do bring up a good point.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: No tools? Use Perl?!
by AnomalousMonk (Archbishop) on Jul 29, 2016 at 02:28 UTC | |
|
Re^3: No tools? Use Perl?!
by Athanasius (Archbishop) on Jul 29, 2016 at 02:36 UTC |