I am trying to convert the following expression to a new Regexp () style:
http://jsfiddle.net/HDWBZ/
var Wyrazenie = /\btest[az]*/g;
I am really confused by this and have no idea how to fix it. The following is what I did, but obviously this does not work.
var Wyraznie = new RegExp("\btest[az]*","g");
The question also arises, what would it look like if instead of "test" I would use a variable?
mik.ro
source share