[pmwiki-users] Another regex question...

Dominique Faure dominique.faure at gmail.com
Mon Apr 30 01:57:40 CDT 2007


On 4/30/07, The Editor <editor at fast.st> wrote:
> I'm trying to work with the zap forms markup so that it if there's a
> newline just before the markup, it will eat the unnecessary newline.
> I'm using something like the LiteralWhiteSpace recipe and can't seem
> to get rid of the extra vertical space when I have a form on the page.
>
> /\n?\(\:zapform(.*?)\:\)/e
>
> I thought this would delete the \n if it existed, but not require it.
> However, it seems to have no effect...
>

IMHO, a good worker should have good tools. Concerning regular
expressions, you may have a try with a good coach:
http://weitz.de/regex-coach/

Regards,
Dominique



More information about the pmwiki-users mailing list