in reply to Re^3: Regex fun
in thread Regex fun
Perl regular expressions don't even have variables, so you couldn't possibly have shown one being used.
This is what I first thought you meant, but it didn't make any sense to me. If one distinguishes “regex variables” (variable at regex run-time) from “Perl variables” (constant at each regex run-time *), then, as you (basically) say, the only ones (I think) are the \1 back-references; but, when Hena said
I would assume that quantifier cannot be a '\x' variableyou said
It's simpler than that: The quantifier cannot be variable.The only reason I could think of to make this comment is if there were some other sort of variable, but you seem to be saying that there isn't. Did I misunderstand?
UPDATE: * False, as I finally realised in Re^6: Regex fun.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Regex fun
by ikegami (Patriarch) on Dec 15, 2009 at 22:22 UTC | |
by JadeNB (Chaplain) on Dec 15, 2009 at 22:55 UTC | |
by ikegami (Patriarch) on Dec 16, 2009 at 00:55 UTC |