|
|
Browse by Tags
All Tags » regular expressions
-
I have a text input field that I want only to accept numbers or the strings "min" and "max"
I am using the javascript replace function and have the code (/[^0-9]/gi,"") that will get rid of all characters that aren't numbers, what do I need to add so that it will still keep the strings min and max? I ...
-
Hi guys,
We all have been there, we have some text we need to allocate using a regex, and we cannot really define what can be between 2 sub matches, so we simply uses the easiest solution .*?. You will probebly wont notice the problem, until the day when the regex cannot find what we are looking for, and then it's takes hours to execute. ...
|
|
|