in reply to regex and XML
Another bit of the puzzle is that in the example you have give, the regular expression is being quoted using pipe symbols (|) instead of the usual forward slash. (Perl allows any non alphanumeric character to be used to quote a regular expression, if it starts with an explicit m).
As others have said, this is an unreliable way to parse regular expressions for a number of reasons. It is much better to use an existing XML parsing library from CPAN.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: regex and XML
by elef (Friar) on Dec 13, 2010 at 14:43 UTC | |
by CountZero (Bishop) on Dec 13, 2010 at 17:45 UTC |