in reply to Regex: Matching quoted text
that should put the match in $1, regardless which alternation matched./(?|"([^"]+)"|(-))/
If you are using a pre-5.10 perl, consider this a good reason to upgrade.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex: Matching quoted text
by Anonymous Monk on Jun 04, 2010 at 13:38 UTC | |
by Anonymous Monk on Jun 04, 2010 at 14:05 UTC | |
by Anonymous Monk on Jun 04, 2010 at 15:33 UTC | |
by JavaFan (Canon) on Jun 04, 2010 at 15:28 UTC |