tags:

views:

49

answers:

1

Hello guys. Im using regular expression to search word in a string

for Example here

var patrn:RegExp = new RegExp("\\bit's\\b");
var str:String = "Heres my problem in it and it's so help me guys.";
trace(patrn.exec(str));//result is null

My problem is I can't search the data in a string which has special character like ('/,/.). What regular expression string is capable solving my problem.Thank you guys.

A: 

When dealing with regular expressions I always use http://www.gskinner.com/RegExr/ .

bug-a-lot