SageFix. LetsFix!  
Current Location : Home > Web Development > JavaScript > Regex help > Post Share/Save/Bookmark    

Main Menu
SageFix - Let's Fix

Board Categories
    Web Site Designing
- Graphics
    Web Development
- .NET
- Classic ASP
- JavaScript
- PHP
    WebSite Management
- Promotion Techniques
- Search Engine Optimization
    Databases
- MySQL

Tutorials

Database Connection Strings

  Contact Us


Regex help      Jul 24, 2002, 08:30 990475
  
Well, for what I'm using this for, some of the values in the regex come from varialbes. Easier to concatenate them as a string first, and then create a new regex object from the string. Like input that must be a number, variable in length
Code:
var lBound = 2;var uBound = 6;var numReg ="/^[0-9]{"+lBound+","+uBound+"}$/";var regex = new RegExp(numReg);

 









Subscribe to our mailing list
email


Current Location : Home > Web Development > JavaScript > Regex help > Post Share/Save/Bookmark    

Development problem? SageFix is completely free -- paid for by advertisers and donations. Click here to Contact Us If you have any query. Enjoy!
Request processed in 7.0E-5 seconds Home - Contact Us - Terms Of Service - Privacy Policy - Copyrights - Top
Advertisements do not imply our endorsement of that product or service.
Current server time now is 09-Sep-2010 09:35:39
Copyright © 2009 Sagefix Inc. All rights reserved.
Powered By SageFix