T
TobiMc3
This is was part of a homework problem (I know how everyone loves
those ) but now the homework is turned in, and I am left with a
nagging question.
I was trying to find a good resource for regular expressions on the
web-but couldn't really find anything that was cut and paste.
In any event, was wondering if anyone had an opinion on a good regex
tutorial. I have recently purchased "mastering regular expressions"
from O'Reilly-but haven't had an opportunity to begin reading it in
earnest.
The problem in question:
Attempting to use a regex pattern to verify if a String has two alpha
characters and two numeric characters. I manged to do other more
basic things, but I couldn't figure that one out. The statement I had
was evaluating to true in the event that the two numbers or letters
were group together-however obviously that would fail if the string
was X1T5-a pattern where the digits or numbers were not right next to
each other.
Thanks for any input/wisdom.
those ) but now the homework is turned in, and I am left with a
nagging question.
I was trying to find a good resource for regular expressions on the
web-but couldn't really find anything that was cut and paste.
In any event, was wondering if anyone had an opinion on a good regex
tutorial. I have recently purchased "mastering regular expressions"
from O'Reilly-but haven't had an opportunity to begin reading it in
earnest.
The problem in question:
Attempting to use a regex pattern to verify if a String has two alpha
characters and two numeric characters. I manged to do other more
basic things, but I couldn't figure that one out. The statement I had
was evaluating to true in the event that the two numbers or letters
were group together-however obviously that would fail if the string
was X1T5-a pattern where the digits or numbers were not right next to
each other.
Thanks for any input/wisdom.