Re: [PHP] Another regex problem - help!

2004-10-16 Thread Jason Wong
On Sunday 17 October 2004 03:54, Murray @ PlanetThoughtful wrote: In this case, I'm trying to perform a preg_match using the following expression: preg_match(/^\[\[ft.$fn[1].:(.*)\]\]$/m,$content,$ft); Nearly there, except that ']' is not a special char and should not be escaped. In the

[PHP] Another regex problem - help!

2004-10-16 Thread Murray @ PlanetThoughtful
Hi All, I'm trying to match a particular pattern in a multi-line string. The string might look like: string Some text. Some more text. [[ft1: An example of the search string [[fn2 [[ft2: Another example of a search string]] Extra text /string In this case, I'm trying to perform a