Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
Thread Tools Display Modes
Share |
  #1  
Old 06-03-2004, 01:16 PM
Once Once is offline
Junior Member
 
Join Date: 06-03-04
Posts: 1
iTrader: 0 / 0%
Javascript: Dynmically change match criteria in RegExp??

var re = new RegExp(/(a)/ig);
var arr = string.match(re)

The above would match on all A/a in string. Is there a way to make this dynamic and match on a different value? Is there some way to make it a variable?

I know there are other ways to code this but I want to try RegExp.
 
Reply With Quote

Advertisement

Advertisement

Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Exact keyword phrase match vs partial keyword match Nikhil SEO Forum 6 11-10-2007 08:47 PM
How to Change the Text Field of a Remote File with JavaScript? ivenms Coding Forum 4 09-02-2007 12:27 PM
TLA Criteria ThreeGuineaWatch Webmaster Revenue 9 07-16-2007 01:51 PM
Need help with RegExp kos Coding Forum 9 04-23-2007 09:45 PM
regexp implementation help (vbscript) grobar Coding Forum 0 08-13-2006 11:55 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 06:49 PM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC