in reply to Re^2: Variable matching on a regex
in thread Variable matching on a regex
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Variable matching on a regex
by LaintalAy (Sexton) on Jun 17, 2010 at 13:35 UTC | |
by Marshall (Canon) on Jun 17, 2010 at 17:17 UTC | |
by furry_marmot (Pilgrim) on Jun 17, 2010 at 20:01 UTC |