Re: [pcre-dev] Ungreedy quantification in atomic groups

Startseite
Nachricht löschen
Autor: Sheri
Datum:  
To: pcre-dev
Betreff: Re: [pcre-dev] Ungreedy quantification in atomic groups
Sheri wrote:
> Philip Hazel wrote:
>
>> On Tue, 1 May 2007, Sheri wrote:
>>
>>
>>
>>> Sheri wrote:
>>>
>>>
>>>> Is there any performance benefit to using an atomic group that includes
>>>> alternates with ungreedy quantification, e.g., something like this?
>>>>
>>>> (?>\\\\|\\t|\\Q.+?\\E|\\$(?:U|u|L|l|T|t)?\\d{1,3})
>>>>
>>>> Or would it be just as well (or better) to omit the (?>
>>>>
>>>>

Strange, it looks correct in the quoted portion above, but not in
replies, not sure what you're seeing, but it starts with atomic group,
then four backslashes, etc.

Regards,
Sheri