in reply to Re: How to get ($1, $2, ...)?
in thread How to get ($1, $2, ...)?
That won't do. I am interested in the order of the regexes and in resuming from where other left. If one uses /$re/, the search will be reset each time. In turn, with /$re/gc I may write code to look for things such as /Title: (.*?)$/, Author: (.*?), and Publisher: (.*?), but will not accept if they come out of order (like "Publisher... Title... Author...").
I have been thinking that I should have phrased this question differently, asking directly for a way to get ($1, $2, ...) in a generic manner and then showing the code for sub _groups. The background that inspired me to formulate the problem could be added as a complement, without obscuring what I was looking for.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to get ($1, $2, ...)?
by varian (Chaplain) on Feb 16, 2007 at 16:35 UTC | |
|
Re^3: How to get ($1, $2, ...)?
by eric256 (Parson) on Feb 16, 2007 at 16:35 UTC | |
|
Re^3: How to get ($1, $2, ...)?
by Anno (Deacon) on Feb 16, 2007 at 16:40 UTC |