Jump to content

quick reg expression in JS


scotchegg78

Recommended Posts

hi

 

 

I want to search a string for a contained pattern.

 

example "Happy Birthday To You"

 

searching for "day" will fail

search for "Bir" will pass

 

i am playing with ..

 

var re = new RegExp("^" + t, "i");

 

but its not right? Any help appreciated.

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/183573-quick-reg-expression-in-js/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.