Home : Products : Gossamer Forum : Discussion :

Products: Gossamer Forum: Discussion: Re: [Paul] regex to match/strip/convert markup tags: Edit Log

Here is the list of edits for this post
Re: [Paul] regex to match/strip/convert markup tags
Actually, the first time I tried it, I assumed I would have to escape that middle ], but for some reason that didn't work. When I removed the \, it worked. So I guess there may be some difference between the PHP and perl regex engines? Maybe the ^ functions as a sort of escape character as well? Not sure - but it definitely works.

EDIT: Sorry - there was a typo as well. You DO have to escape the third ], just not the middle one. So it should be: \[([^]]*)\]

Fractured Atlas :: Liberate the Artist
Services: Healthcare, Fiscal Sponsorship, Marketing, Education, The Emerging Artists Fund

Last edited by:

hennagaijin: Dec 8, 2002, 7:44 AM

Edit Log: