regex - Convert PHP preg_match to javascript -


can me converting this

preg_match('/^(.*?)[#,\.0]+(.*?)$/',$patterns[0],$matches) 

into javascript equivalent? tried doing

matches = patterns[0].match('/^(.*?)[#,\.0]+(.*?)$/') 

but results in null...

remove quotes regex

matches = patterns[0].match(/^(.*?)[#,\.0]+(.*?)$/); 

Comments

Popular posts from this blog

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -