mardi 30 août 2016

Javascript REGEX matching two brackets [[something]]

trying to match anything width and including two brackets e.g. [[match this]] so I can replace without brackets.

here is what I have as far var regex = /([[|]])w+/g;

However this matches the above like this [match

Any help would be appreciated

Aucun commentaire:

Enregistrer un commentaire