F
Faraz.ya
Hi,
I am trying to find a regular expression for 5 consequent numbers like
a zipcode anywhere in a string. For example, the regular expression
should match the following cause they contain 5 consequent numbers
somewhere:
aaa, bbbb, 46546
34344
aaaaaaaaa 67674
ajksdhajks 67675 asdhjkasd
but it shouldn't match the following:
asdjkas hdjasdhsajkd
7674367346
33
asdjkas 343
I tried using the following but it didn't work
myString.matches( "\\d{5}"))
Can somebody help me please
Thanks,
Ross
I am trying to find a regular expression for 5 consequent numbers like
a zipcode anywhere in a string. For example, the regular expression
should match the following cause they contain 5 consequent numbers
somewhere:
aaa, bbbb, 46546
34344
aaaaaaaaa 67674
ajksdhajks 67675 asdhjkasd
but it shouldn't match the following:
asdjkas hdjasdhsajkd
7674367346
33
asdjkas 343
I tried using the following but it didn't work
myString.matches( "\\d{5}"))
Can somebody help me please
Thanks,
Ross