EasyPattern bug?

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
hagchr
Automation Wizard
Posts: 327
Joined: Mon Jul 05, 2010 7:53 am
Location: Stockholm, Sweden

EasyPattern bug?

Post by hagchr » Sun Mar 07, 2021 11:09 am

This simple example looks strange compared to what is written in the text referred to in the help file. "longest" should make it match as much as possible, ie in the example it should match "abc" but here it results in three matches "a", "b", and "c". "shortest" is the other way around - should match as little as possible, but here matches "abc". So it seems it is mixed up. Or am I mistaken (I normally do not use EasyPattern)?

Code: Select all

Let>string=abc

Let>pattern=[longest 1+ letter]
RegEx>pattern,string,1,m,nm,0

Let>pattern=[shortest 1+ letter]
RegEx>pattern,string,1,m,nm,0

User avatar
Marcus Tettmar
Site Admin
Posts: 7378
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: EasyPattern bug?

Post by Marcus Tettmar » Fri Mar 12, 2021 12:10 pm

I'm not sure to be honest. The docs are here:

https://www.datamystic.com/easypatterns_reference

Shouldn't it be [longest oneOrMore letter] ?

You might want to email datamystic directly if you need more help.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts