ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-xml
perl-xml
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved