Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Perl
Perl Misc
how to remove blocks between nested brackets
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Si, post: 4849633"] Beeing new to perl and not wanting to learn using it like assembler, I need to delete parts of a single line (possibly long) that are enclosed between nested brackets: abcd efgh [ij: 123-[456]-klm; nop-789]; qrst; uvw [xyz: 98-76-[ef]; gh; ijkl] (mnop) The comments between [] must be discarded to split with ';' delimiter. The expected result is: array[0] == "abcd efgh" array[1] == "qrst" array[2] == "uvw (mnop)" Thanks for a magic formula. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Perl
Perl Misc
how to remove blocks between nested brackets
Top