regex - Is there a regular expression technique that will match a zip code with one pair of digits transposed? -


Preferably using the Oracle syntax, I need to match the US zip code (5 digit numeric), where a pairing number has been infected.

Can it be done with a regular expression?

If so, what will happen that what regex looks like?

Edit:

Two consecutive digits transfer;

12345 = 12345 or 12354 or 12435 or 13245 or 21345

About Oracle But you can add a known string like your string w / a 12345 match and you can use this method:

  \ b (\ \) (\ \) (\ \) (\ D) (\ d) (\ d) (\ d)) \ b (? =. *? Match: (?: \ 2 \ 3 \ 4 \ 6 \ 5 | \ 2 \ 3 \ 5 \ 4 \ 6 | 2 \ 4 \ 3 \ 5 \ 6 | 3 \ 2 \ 4 \ 5 \ 6))  


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -