[SOLVED] Action Designer "Shortest Match Regex Not working"

joemania

Новичок
Регистрация
07.11.2012
Сообщения
37
Благодарностей
14
Баллы
0
Hi, So i have a list of 40 items.

I have Two List Boxes.

in first box is chose Item "Internet Marketing" by doing a Regex :Internet\ Marketing.*?

Then in Second Box the Items load and i have to choose "Internet". Now when i try Internet\ .*? This works in Regular Expression Designer.

But in Action Designer It still gets 2 Values "Internet Marketing As Match 0" en "Internet as Match 1".

so Action designer does not recognize the "shortest Match".

I can't work with Match 0 en 1 cuz Sometimes It does have a conflic like above en Sometimes it does not with other categories.

So if i set for Listbox 2 to match with "1" , it may fail for others where the match is 0.


SO in terms i want to "Make action designer choose " Internet" Exact" and not "find other that contain. In other words so it fixes the bug of "Shortest Match"

This is really important
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
Please give me real example.
You can PM me if you dont wanna to post URL here.
 

joemania

Новичок
Регистрация
07.11.2012
Сообщения
37
Благодарностей
14
Баллы
0
http://ezinearticles.com/?cat=Business

Go to the link above and open Action Designer and Search by atribute "outertext" for "Accounting".

Now Zenno will Find this two matches here under. Now when you put the option to "Regex" and use the Shortest Match, it still brings "2" matches. It does not understand i want only the shortest match. which is
Accounting. Yes i know, i can "choose first match". but this function "shortest match" has to work. Because in my bots i want only to get "Exact Match text" i want and thats where i need the shortest match.

It does work in Regex designer, when i put this two text and search for shortest match "Accounting" it does find the exact word. But in action designer shortest match does not work.


Accounting (5,819)
Accounting Payroll (966)

Thanks Rostonix, much appreciete your support.
 

joemania

Новичок
Регистрация
07.11.2012
Сообщения
37
Благодарностей
14
Баллы
0

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
Sorry.
Forgot to reply.

If you wanna perform exact search, you have to use text as search type.
Regex type will give you all possible matches that include your search query.
 

joemania

Новичок
Регистрация
07.11.2012
Сообщения
37
Благодарностей
14
Баллы
0
Sorry.
Forgot to reply.

If you wanna perform exact search, you have to use text as search type.
Regex type will give you all possible matches that include your search query.
Sorry.
Forgot to reply.

If you wanna perform exact search, you have to use text as search type.
Regex type will give you all possible matches that include your search query.
Thanks for your reply :-)

Rostonix, i tried the text too it still gives me all options.

List is.


- Internet Marketing
- Internet Services
-Internet
I want to click on Internet by Searching for "Internet" en click "0" match. But internet is "Match 2".

In Regejex Designer we can use Regular Expression to say Shortest match "so it only looks for "internet" and nothing else". And it does work in Regular expression Designer. but not in Action designer.

Using Text still finds the other matches.
 

joemania

Новичок
Регистрация
07.11.2012
Сообщения
37
Благодарностей
14
Баллы
0
Btw, The reason i need 'Match 0" always is because the List is always different, and it works with variables.
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 707
Баллы
113
You can use this regex then:

^Accounting$
 

joemania

Новичок
Регистрация
07.11.2012
Сообщения
37
Благодарностей
14
Баллы
0

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)