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.ran...@affinity.co.nz>
> To: pmwiki-devel@pmichaud.com
> Subject: Re: [pmwiki-devel] custom markup question...
> Message-ID: <4d055d13.5070...@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.ran...@affinity.co.nz
> www.affinity.co.nz
> 
> 


_______________________________________________
pmwiki-devel mailing list
pmwiki-devel@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-devel

Reply via email to