Why do you want to avoid using /g in the first place?
How might you possibly define what to capture without specifying all the options or repeating with /g?
If you provide a pseudocode example, the monks can then come up with the closest real way to do it.
PS: Whenever you think about declaring $d1, $d2, $d3, what you really want is @d and a more descriptive name.
In reply to Re^3: Variable matching on a regex
by SuicideJunkie
in thread Variable matching on a regex
by LaintalAy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |