Hi all,
i have simple regular expression:
^123$
Matches are for example
123
1234
etc.
How can i exactly 123 as result without the 1234 (i'm not sure, if it's possible)?
Hi all,
i have simple regular expression:
^123$
Matches are for example
123
1234
etc.
How can i exactly 123 as result without the 1234 (i'm not sure, if it's possible)?
^123$
doesn't match 1234 - exactly what you want. So what's the problem?
^
means start of string to be matched
$
means end of that string
The regex you gave should match only the string "123"
and should not match "1234"
. I don't know what you're doing wrong to get it to match "1234"
, but it's not the regex.