Don't use greedy matching '.*', use non-greedy instead '.*?'
Also, I would suggest that you learn how to use an actual HTML Parser instead of jury rigging regex's.
In reply to Re: regex is not working properly
by wind
in thread regex is not working properly
by manishrathi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |