Click here to get back home

How to parse with regular expression...

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
How to parse with regular expression... stratus 05-05-2005
Posted by stratus on May 5, 2005, 6:33 am
Please log in for more thread options


        Is there any module can solve the following problem ?

I have a file containing the following in multiple line with "" operator:
-begin [yyy[xxxx]zz] -through [xxxxx
xxxxxx
xxxxx
] -end [xxxxx [yy zz]
xxxxx
]

And I want to add some contents before and after the bracket [] if
has the keyword "begin" "end"

Hence, the results should look like
-begin +++++[yyy[xxxx]zz]+++++ -through [xxxxx
xxxxxx
xxxxx
] -end +++[xxxxx [yy zz]
xxxxx
]+++




Posted by Gunnar Hjalmarsson on May 5, 2005, 10:19 am
Please log in for more thread options


stratus wrote:
>         Is there any module can solve the following problem ?

Check out Regex::Common if you think your problem is common enough...

> I have a file containing the following in multiple line with "" operator:
> -begin [yyy[xxxx]zz] -through [xxxxx

<snip>

And please stop spamming our groups with this!

http://groups-beta.google.com/group/comp.lang.perl.misc/msg/3d9014e392b27e88

http://groups-beta.google.com/group/comp.lang.perl.misc/msg/630e4069d1c95b53

You got a reply to your first post in clpmisc.

http://groups-beta.google.com/group/comp.lang.perl.misc/msg/3f7a70dd9bdcfcdc

Post a *follow-up* if you didn't find it clear enough.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl


Similar ThreadsPosted
Regular Expression Generator June 26, 2006, 1:42 am
Simple Regular Expression Help May 16, 2007, 1:59 pm
regular expression problem ? and * characters May 28, 2006, 7:02 am
Problem to get Parse::Yapp and Parse:Flex working together November 2, 2005, 3:15 pm
trickiness (?) calling regular subroutines from OO methods August 23, 2004, 11:16 am
Parse::Readelf 0.01 - parse the output of readelf September 24, 2007, 12:07 pm
Problems with Parse::Lex May 5, 2005, 8:22 pm
I want to take over module Parse::Lex, how to do it? April 17, 2006, 10:49 pm
Parse::FixedLength. where did pars() go? September 30, 2004, 2:02 pm
Parse::RecDescent demo_Cgrammar.pl March 14, 2006, 6:17 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap