Re: [PHP] Re: Dynamic Regex

2003-01-08 Thread Gerard Samuel
- Original Message - From: "Gerard Samuel" <[EMAIL PROTECTED]> To: "Greg Beaver" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, January 09, 2003 12:24 AM Subject: Re: [PHP] Re: Dynamic Regex What you suggested is what I was trying before

Re: [PHP] Re: Dynamic Regex

2003-01-08 Thread Greg Beaver
uel" <[EMAIL PROTECTED]> To: "Greg Beaver" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, January 09, 2003 12:24 AM Subject: Re: [PHP] Re: Dynamic Regex > What you suggested is what I was trying before. My original example > was incorrect.

Re: [PHP] Re: Dynamic Regex

2003-01-08 Thread Gerard Samuel
What you suggested is what I was trying before. My original example was incorrect. Here is an good example for the variable holding the pattern -> $foo = '/\[url\]([a-z]+://.*?)\[/url\]/'; This pattern would not work, but if I change it to $foo = '#\[url\]([a-z]+://.*?)\[/url\]#'; It does work.