Q: dynamic usage of regex in a repeat loop

Bernard Devlin bdrunrev at gmail.com
Fri Jun 26 03:54:45 EDT 2009


I don't have an answer, and was hoping someone else might.

The only thing that might work would be to dig deeper into regex themselves.

I believe that there are ways of constructing regex queries so that
one can subsequently pick out the occurrences where a hit occurred.

Bernard

2009/6/25 Franz Böhmisch <boehmisch at animabit.de>:
> Hello I need sth like the following
>
> repeat for each line regexline in field "regexlist"
> try
> put matchText(einzelinserat,regexline,region,rooms,ground,price,remarks) into check
> end try
> if check = true then
> ...
> end if
> end repeat
>
> with regex like
> ([a-z]{1}) ([0-9,]{1,2}) ([0-9,.]{2,5}) ([0-9,.]+)(.*)
> ()()([0-9,.]{2,5}) ([0-9,.]+)(.*)
> ()()(^[0-9,]{1,3}) (\d+) ([0-9.,]+)(.*)
> ([A-ZÄÖÜ]{1,3}) ([0-9,]{1,2}) ([0-9]{1,5}) ([0-9,.]{1,5})
> in the list.
>
> Is it possible to make the matchtext part more flexible for allowing to find items not in the focus at programming time (without using evaluate ...).
> in a kind of
> put matchText(einzelinserat,regexline,variablelist) into check
>
> Any ideas?
>
> Regards, Franz
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list