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
  • 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
  • RegexPal: Web-Based Regex Testing Reinvented

    Yes I know, there are many other JavaScript regex testers available. Why did I create yet another? RegexPal brings several new things to the table for such web-based apps, and in my (biased) opinion it's easier to use and more helpful towards learning regular expressions than the others currently available. Additionally, most other such ...
    Posted to Flagrant Badassery (Weblog) by Stevezilla00 on August 6, 2007
  • XRegExp: An Extended JavaScript Regex Constructor

    I have recently written an extended JavaScript regular expression constructor which I’ve called XRegExp. This script is very small (the minified version weighs in at 937 bytes), and it adds support for two simple but powerful additional flags beyond those JavaScript supports natively: s – Dot matches all (a.k.a., single-line) ...
    Posted to Flagrant Badassery (Weblog) by Stevezilla00 on May 30, 2007