On Tue, Jan 22, 2002 at 08:59:51AM -0800, Big D wrote:
> Bill,
> 
> This is commonly referred to as 'leaning toothpick syndrome' (LTS).
> The problem is that you're using / as your regex delimiter AND you're not
> escaping it in your regex. Change your delimiter to something NOT in your regex,
> like @ or & or whatever, i.e. @:http://.....@ is a valid regex (Perl is smart
> about this).

When Perl produces the error message, the regex is delimited with slashes
regardless of the actual delimiter used in the code.  Note that the error
message in this case shows slashes within a regex delimited by slashes:

/:http://(/


BTW, using balanced characters, e.g. m{} or s[][], is often the best way to
delimit complicated regular expressions.

Ronald

Reply via email to