Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Re: [Paul] regex to match/strip/convert markup tags

Quote Reply
Re: [Paul] regex to match/strip/convert markup tags In reply to
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
Subject Author Views Date
Thread regex to match/strip/convert markup tags hennagaijin 3271 Dec 6, 2002, 1:44 PM
Thread Re: [hennagaijin] regex to match/strip/convert markup tags
hennagaijin 3196 Dec 8, 2002, 6:59 AM
Thread Re: [hennagaijin] regex to match/strip/convert markup tags
Paul 3195 Dec 8, 2002, 7:02 AM
Post Re: [Paul] regex to match/strip/convert markup tags
hennagaijin 3192 Dec 8, 2002, 7:34 AM