Link to home
Start Free TrialLog in
Avatar of unceasing
unceasing

asked on

Need a regular expression matching </div><div class="cloud">

Please provide me a regular expression that matches </div><div class="cloud"> at the end of a string.

Avatar of Terry Woods
Terry Woods
Flag of New Zealand image

/<\/div><div class="cloud">$/
m{\</div\>\<div\sclass="cloud"\>$}
m{</div><div class="cloud">$}
Avatar of unceasing
unceasing

ASKER

I actually need to use this regular expression in javascript code.
ASKER CERTIFIED SOLUTION
Avatar of farzanj
farzanj
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
TerryAtOpus' pattern is Javascript ready--as farzanj demonstrates  = )