Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pattern matching.

Status
Not open for further replies.

caesarkim

Programmer
Oct 30, 2003
56
US
I have a long string that contains <UNCLICKED/>, but i want to replace this node with just something else.

var regExp = new RegExp("<NOTCLICKED<\/>","gi");

this one is not working.

it should be exact match.

please help...
 
>[tt]var regExp = new RegExp("<NOTCLICKED<\/>","gi");[/tt]
Why do you think it should match?
[tt] var regExp = new RegExp("<[red]UN[/RED]CLICKE[highlight]D\[/highlight]/>","gi");[/tt]


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top