[pmwiki-devel] custom markup question...

adam overton a at plus1plus1plus.org
Mon Dec 13 15:02:37 CST 2010


that's it! thanks so much john!
yay! never knew about the s modifier.
adam



> Message: 2
> Date: Mon, 13 Dec 2010 12:38:59 +1300
> From: John Rankin <john.rankin at affinity.co.nz>
> To: pmwiki-devel at pmichaud.com
> Subject: Re: [pmwiki-devel] custom markup question...
> Message-ID: <4D055D13.5070707 at affinity.co.nz>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
> 
> On 13/12/10 11:00 AM, adam overton wrote:
>> i'm trying to create a custom markup device that captures text and inserts other markup for any text lying between (:newmarkup:) and (:newmarkupend:)
>> 
>> Markup('createColumns', 'fulltext',
>> 	'/\\(:createColumns\\s+(.*)\\s*:\\)(.*)\\(:createColumnsend:\\)/ie',
>> 	'CreateColumns_func("$1","$2")'
>> );
>> 
>> any idea how i can get my markup to span the entire distance?
> Try /ies in the match pattern -- the 's' should make the regular 
> expression keep going past line endings.
> 
> JR
> 
> -- 
> John Rankin
> Affinity Limited
> T 64 4 495 3737
> F 64 4 473 7991
> M 021 RANKIN
> john.rankin at affinity.co.nz
> www.affinity.co.nz
> 
> 




More information about the pmwiki-devel mailing list