I think you probably meant to backslash the last ']' character also.while ($source =~ /(\[link title:(.*?)\](.*?)\[\/link])/gi)
In reply to Re: replacing variable in regex - probs with special chars?
by clairudjinn
in thread replacing variable in regex - probs with special chars?
by Emanuel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |