in reply to Regular Expression: search two times for the same number of any signs
If I understand you correctly (and maybe not, see How to ask better questions using Test::More and sample data) you want this:
In which case, just code this up with a loop and judicious use of index and substr.
However, this does sound rather like an XY Problem. Perhaps if you explained why you want to do this in the first place a much better solution might become apparent.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regular Expression: search two times for the same number of any signs
by Ratazong (Monsignor) on Nov 29, 2016 at 10:19 UTC | |
by hippo (Archbishop) on Nov 29, 2016 at 10:31 UTC | |
|
Re^2: Regular Expression: search two times for the same number of any signs
by Anonymous Monk on Nov 29, 2016 at 10:28 UTC |