Hey all,
I ran into something with regular expressions that I can't figure out how to do. I've looked at the online perl regex docs and the O'reilly Llama.
Lets say you have a string $string. $string contains N number of /xyz/'s. Is there a way to count the number of /xyz/'s that occur in $string? I know this probably doesn't come up a lot, but it would simplify something I'm working on greatly.
Much thanks,
Symbiotic
I ran into something with regular expressions that I can't figure out how to do. I've looked at the online perl regex docs and the O'reilly Llama.
Lets say you have a string $string. $string contains N number of /xyz/'s. Is there a way to count the number of /xyz/'s that occur in $string? I know this probably doesn't come up a lot, but it would simplify something I'm working on greatly.
Much thanks,
Symbiotic