> But the problem was a deficiency in the translate markup.  Both of
> these rules should have the "ungreedy" U in the flags:
>
> if (BOLTconfig('BOLTlanguage') != '') MarkUp('func', 'translate',
> '/>>(.+)(&lt;&lt;|<<)/meU', 'BOLTtranslate("$1", "")'); //
>>>translated text<<
> else MarkUp('func', 'translate', '/>>(.+)(&lt;&lt;|<<)/meU', '"$1"');
> // >>translated text<<

never seen the U modifier used before.
could you not write the regex more conventional using  a ?
to make the pattern not greedy, like

  '/>>(.+?)(&lt;&lt;|<<)/me'

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to