tsteward Well-Known Member Licensed User Longtime User Mar 15, 2020 #1 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
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
Erel B4X founder Staff member Licensed User Longtime User Mar 15, 2020 #2 Hard to say without very carefully testing the patterns. tsteward said: I have about 250 lines to create regex for so wondering if this is the best way. Click to expand... Do you mean that there are 250 patterns? Upvote 0
Hard to say without very carefully testing the patterns. tsteward said: I have about 250 lines to create regex for so wondering if this is the best way. Click to expand... Do you mean that there are 250 patterns?
tsteward Well-Known Member Licensed User Longtime User Mar 15, 2020 #3 Erel said: Hard to say without very carefully testing the patterns. Do you mean that there are 250 patterns? Click to expand... 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
Erel said: Hard to say without very carefully testing the patterns. Do you mean that there are 250 patterns? Click to expand... 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