You didn't say what language the source code is, so I'm guessing perl :)
In which case, does perltidy -html do the right thing?
In reply to Re: regex'ing source code
by RichardK
in thread regex'ing source code
by zuma53
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |