regex for xml comment.
by Srinivasan.S other posts by this author
Jun 25 2007 10:07PM messages near this date
view in the new Beta List Site
[ANN] XML::SAX::ExpatXS 1.31
|
Re: regex for xml comment.
& XSLT Hi,
I have a file which I need to parse based on a regex.
regexp {^# ([A-Z_]+):PROMPT:(.*)$}
The content on the file will be
# TESTING:PROMPT:Some things to do
I need to parse based on xml comment.
<!-- TESTING:PROMPT:some things to do
I tried the following options:
regexp {^< ([!--]+):PROMPT:(.*)$}
regexp {^\< ([\!--]+):PROMPT:(.*)$}
regexp {^\< ([\!\-\-]+):PROMPT:(.*)$}
Thanks in advance for your help.
Regards
SS
-- S.Srinivasan
Res: 044-28445520
---------------------------------
Park yourself in front of a world of choices in alternative vehicles.
Visit the Yahoo! Auto Green Center.
Thread:
Srinivasan.S
A. Pagaltzis
Jonathan Peterson
|