I have a Regex in AS3. Until now it’s been working, but now I would like to disclude a phrase from the beginning. Specifically, the original was:
var pattern:RegExp = new RegExp(keyword,'/gi');
I’m trying to do something along the lines of:
var pattern:RegExp = new RegExp(!'<a href=\"event:' + keyword,'/gi');
Where
baaah
would work, but
<ahref="event:baaah
would NOT work.
Please help! What is the proper syntax to implement in my code.
check out this follows.
I strongly recommend : Regular_expression
Assertions