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

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -