Subject: Re: [Name Mangler Talk] non greedy regex

From: Rob Griffiths <[email-masked]>
Date: Fri, 29 Oct 2021 05:17:47 -0700

On Oct 29, 2021, at 5:11 AM, Klaus-Peter Gores <[email-masked]> wrote:

> The documentation i was referring to is the one for 
> "Apple's built-in regular expression API <https://manytricks.com/helpurls/namemangler/regexdocs.php> in free-spacing <https://manytricks.com/helpurls/namemangler/freespacing.php> mode. Please see Preferences <x-msg://6/preferences.html> for more information on the regex engine and how to disable free-spacing mode."

That's referring to changing whether you have to write regex like this:

find\ this\ string

Or like this:

find this string

In the General preferrences, there's a checkbox for "Regular expressions ignore whitespace" if you'd rather not delimit the spaces.

-rob.

---

From: Klaus-Peter Gores <[email-masked]>
Date: Fri, 29 Oct 2021 05:11:10 -0700 (PDT)

tx and sorry for the late reply. this worked and i dont understand what i 
did wrong before.
The documentation i was referring to is the one for 
"
Apple's built-in regular expression API 
<https://manytricks.com/helpurls/namemangler/regexdocs.php> in free-spacing 
<https://manytricks.com/helpurls/namemangler/freespacing.php> mode. Please 
see Preferences <preferences.html> for more information on the regex engine 
and how to disable free-spacing mode.
"

tx
Many Tricks schrieb am Samstag, 16. Oktober 2021 um 20:01:51 UTC+2:

> On Oct 16, 2021, at 9:34 AM, Klaus-Peter Gores <[email-masked]> wrote:
>
> failed finding the docs
>
>
> Our docs are all in our apps, in the Help menu.
>
> ...so high do I define a regex  non-greedy in Name Mangler?
>
> The  expression A.*Z on eeeAiiZuuuuAoooZeeee
> usually matches greedy AiiZuuuuAoooZ
> but i want it to match reluctant AiiZ and AoooZ
>
>
> Unless I'm misunderstanding, this should work:
>
> A.*?Z
>
> regards;
> -rob.
>
> -----------
>
>

---

From: Rob Griffiths <[email-masked]>
Date: Sat, 16 Oct 2021 11:01:46 -0700

A.*?Z

regards;
-rob.

-----------

---

From: Klaus-Peter Gores <[email-masked]>
Date: Sat, 16 Oct 2021 09:34:56 -0700 (PDT)

Hi,

failed finding the docs...so high do I define a regex  non-greedy in Name 
Mangler?

I sthis possible? How?
Any help appreciated