Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > How to parse with regular expression...

Thread Tools

How to parse with regular expression...

Posts: n/a
I have a command like the following in multiple line with "\" operator:
-begin [yyy[xxx{xx}x]zz] -through [xxxxx \
xxxxx \
] -end [xxxxx [yy zz] {ww} \

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[xxx{xx}x]zz]+++++ -through [xxxxx \
xxxxx \
] -end +++[xxxxx [yy zz] {ww} \

How to do this with the regular expression...
Thanks !!!

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
optparse: parse v. parse! ?? 7stud -- Ruby 3 02-20-2008 05:20 AM
regular expression to parse {"hello", "hello world","1hello-2*hello"} Roy Java 6 01-07-2008 08:06 PM
Regular Expressions to parse HTML =?Utf-8?B?UGF0cmljaw==?= ASP .Net 2 09-24-2007 03:37 AM
How to parse a string like C program parse the command line string? C Programming 19 03-15-2005 07:41 PM