dimanche 3 mai 2015

How not to match a certain regexp in javascript?

I want to check if a variable do not match this regexp:

DEMO

So this is the pattern that match the regexp in my code:

rxAfterPrint = new RegExp(/^ *\+ *("(?:[^"]*)"|(?:[a-zA-Z]\w*)) *(.*)$/);

and in this way I check for matching:

var t2 = t[2].match(rxAfterPrint); and now I want to create e varible t3 that dont match this pattern

How can I do this? can you please help me?

Aucun commentaire:

Enregistrer un commentaire