perl regex modifiers

Dar Scott dsc at swcp.com
Sat Jul 26 13:52:01 EDT 2003


On Saturday, July 26, 2003, at 12:00 PM, Mark Brownell wrote:

>> However, to compare these, I would make both match only the first  
>> <perl></perl> pair (ignoring embedded pairs).  Also the offset method  
>> should set bbYes.  This makes both take longer, but the resulting  
>> differences in time are less.
>
> Then one should also be aware that I sometimes try to pick up  
> multiple-lines of text embedded between the <perl> </perl> sets. I  
> noticed that the regEx example so far will not do that. I wonder what  
> would happen to speed after that was added.

Try "(?s:<perl>(.*?)</perl>)".

Dar
************************************************************************ 
****
   Dar Scott Consulting    http://www.swcp.com/dsc/    Programming  
Services
************************************************************************ 
****




More information about the use-livecode mailing list