A
Andrew Poulos
I have a string that looks like this
"cmi.interactions.fred.id"
I need to test that:
- the first part of the string is "cmi.interactions." (case sensitive).
- the last part of the string is ".id" (case sensitive).
- that there's 1 or more characters between the 2nd and third dots (in
the above example its "fred")
- that there's only 3 dots in the whole string
Could someone please write a regexp for me. I've had a few goes but it
keeps failing.
Andrew Poulos
"cmi.interactions.fred.id"
I need to test that:
- the first part of the string is "cmi.interactions." (case sensitive).
- the last part of the string is ".id" (case sensitive).
- that there's 1 or more characters between the 2nd and third dots (in
the above example its "fred")
- that there's only 3 dots in the whole string
Could someone please write a regexp for me. I've had a few goes but it
keeps failing.
Andrew Poulos