Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
How would I remove only the first '(' or last ')' if a pair isn't seen: i.e.(1.3.56.84 56.38.m.26) (56.2.3.59)
Any ideas?(1.3.56.84 => 1.3.56.84 56.38.m.26) => 56.38.m.26 (56.2.3.59) => (56.2.3.59)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Removing only the first instance with RegEx
by Abigail-II (Bishop) on Nov 06, 2003 at 14:14 UTC | |
by Anonymous Monk on Nov 06, 2003 at 14:22 UTC | |
by Abigail-II (Bishop) on Nov 06, 2003 at 14:29 UTC | |
by Anonymous Monk on Nov 06, 2003 at 14:33 UTC | |
|
Re: Removing only the first instance with RegEx
by Roger (Parson) on Nov 06, 2003 at 14:25 UTC | |
|
Re: Removing only the first instance with RegEx
by Roy Johnson (Monsignor) on Nov 06, 2003 at 18:49 UTC | |
by Anonymous Monk on Nov 06, 2003 at 20:24 UTC | |
|
Re: Removing only the first instance with RegEx
by sweetblood (Prior) on Nov 06, 2003 at 14:14 UTC | |
|
Re: Removing only the first instance with RegEx
by Anonymous Monk on Nov 06, 2003 at 14:05 UTC |