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.
In reply to Re: Extract a pattern from a string
by GrandFather
in thread Extract a pattern from a string
by avim1968
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |