You "need" to help yourself. Read Markup in the Monastery AND perldoc perlretut and perldoc perlre. This is NOT code-a-matic -- even when you post unintelligible nonsense.
Please format each code, data and sample output within a SEPARATE <c> </c> (code) block to make your question easy to understand.
Your attempt at substitution is
UPDATE: Fixed borked codetag example. TY, MLX!
In reply to Re: Need regular expression (OP needs to read the docs)
by ww
in thread Need regular expression
by praveenchappa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |