given the above tags i want to get as output the numbers highlighted as bold (123), and eliminate or ignore other numbers that uses the span with classes like "null", "null2", "null3" and "null4".
Can some one here help me with this problem?
Kind Regards,
Rommel
Since your HTML is so weirdly formed, I couldn't find a decent way to do this with a pure regexp. Here's a PHP implementation: