in reply to Extract a pattern from a string
In his reply davido mentions the special arrays @- and @+ which store the start and end character indexes for various matched portions of the string being matched. However, most often those indexes are a means to an end and most often Perl provides better means. It's kind of hard for us to help you find those means however because you've not told us what you want to do. If you take a step back and describe the bigger picture we may be able to offer more help.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Extract a pattern from a string
by avim1968 (Acolyte) on Jun 10, 2012 at 09:41 UTC | |
by avim1968 (Acolyte) on Jun 10, 2012 at 11:56 UTC | |
by AnomalousMonk (Archbishop) on Jun 10, 2012 at 17:15 UTC |