Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
So after my reg expression it will look like this:(here is words or numbers or dates) information starts here etc...
My below attempt will look at any input that starts with a paranthesis then the paranthesis and all its words inside of it will be deleted:information starts here etc...
Please advise because it didnt work.if($input =~ /^\(\s*$\)/) { s/$1//; }
Retitled by g0n from 'Taking out info at beginning of textarea'.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Stripping parenthesized test from beginning of a textarea string with regex
by holli (Abbot) on Sep 07, 2005 at 12:00 UTC | |
|
Re: Stripping parenthesized test from beginning of a textarea string with regex
by liverpole (Monsignor) on Sep 07, 2005 at 13:10 UTC | |
|
Re: Stripping parenthesized test from beginning of a textarea string with regex
by pg (Canon) on Sep 07, 2005 at 13:30 UTC |