Regular expression to match a certain HTML element

Lol...

New Member
I'm trying to write a regular expression for matching the following HTML.\[code\]<span class="hidden_text">Some text here.</span>\[/code\]I'm struggling to write out the condition to match it and have tried the following, but in some cases it selects everything after the span as well.\[code\]$condition = "/<span class=\"hidden_text\">(.*)<\/span>/";\[/code\]If anyone could highlight what I'm doing wrong that would be great.
 
Back
Top