Got more questions? Find advice on: ASP | SQL | XML | Windows
in Search
Welcome to RegexAdvice Sign in | Join | Help

Browse by Tags

All Tags » javascript » numbers
  • Trying to capture a series of values.

    Howdy all, I've got this incoming string "132 / 456 / 789" (Or sometimes even "123/456/789" but it should always be with / seperating the numeric values.) and I'm trying to capture just the numbers and move them into a variable.  My RegEx is:  ([0-9]+)(?:[^0-9]*)([0-9]+)(?:[^0-9]*)([0-9]+)(?:[^0-9]*) So, ...
    Posted to Construction Advice (Forum) by EtanSivad on July 13, 2010
  • Match non-numbers in input field

    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 ...
    Posted to Construction Advice (Forum) by sreg0r on August 26, 2008