[pmwiki-devel] Multi-Line patterns
    Petko Yotov 
    5ko at free.fr
       
    Mon Mar 12 21:33:50 CDT 2007
    
    
  
On Tuesday 13 March 2007 03:23, The Editor wrote:
> What switch do you use to match a pattern over multiple lines?  I
> can't seem to find it though I remember seeing it on the mail list.
> Help?
>
> I want to be able to match:
>
> (:field: asfasdf
> asdfasdfsa
> asdfsadfasfd:)
>
preg_match_all('/\\(:(\\w[-\\w]*):(?!\\))\\s?(.*?):\\)/s', $page['text']);
See the $PageTextVarPatterns array in the latest latest scripts/stdmarkup.php.
Petko
    
    
More information about the pmwiki-devel
mailing list