Android Question Regex help please

tsteward

Well-Known Member
Licensed User
Longtime User
Hoping someone can have a quick look at the attached file.
1st column is what I call the "Code Series" 2nd column if the regex for that code series.

It seems to work perfectly but as I know nothing about regex I'm just bluffing my way through.
I have about 250 lines to create regex for so wondering if this is the best way.

In my app the user will select a code series for example X0001-X8000 then enter the code they want perhaps X2312. My app then uses regex to ensure what the user entered is properly formatted before sending request to my website to retrieve more information.

Spread Sheet
 

tsteward

Well-Known Member
Licensed User
Longtime User
Hard to say without very carefully testing the patterns.


Do you mean that there are 250 patterns?
Yes 250 different patterns.
Think I'm crazy it's not really needed just looked good checking days before sending request to server. I can just have the server return false then deal with it I think
 
Upvote 0
Top