in reply to Capturing everything after an optional character in a regex?
works for me... HTHperl -e '$string="abcX123"; $string =~ /X+?(\S+)/; print $1;'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Capturing everything after an optional character in a regex?
by Anonymous Monk on Dec 10, 2003 at 03:52 UTC |