Forum > General

regex/and

<< < (2/2)

rens:

uhm... masks unit can do this :

*ex1*ex2*;*ex2*ex1*

this will match on
thisex1thatex2
and also
thisex2thatex1

but not on thisex1
and not on thisex2

MatchesMaskList(name,srchitem,';',ignoCase)

that what you are looking for ?


--- Quote from: BubikolRamios on December 07, 2023, 04:36:52 pm ---Need user to  be able to combine multiple regex match on single text.

https://stackoverflow.com/questions/469913/regular-expressions-is-there-an-and-operator
So it is difficult to near impossible.

Since one can't, I guess, invent delimiter in ordinary text such as 'a;b', i.e. , seek for regex match 'a' and regex match 'b' and then if both positive there is a find  ...
Is there a control in lazarus, table like, where you can enter text as you would into Tedit ?
Where first col would be 'and' or 'or' and second regex ?

TValueListEditor at first look ... ? Any suggestion ?


Edit: possible with 4 columns so math like logic could be invented, like , R = regex
(R1) AND (R2 OR R3) .....

--- End quote ---

jamie:
You know, I never have a problem with RegEx  :D

dsiders:

--- Quote from: jamie on February 03, 2024, 03:45:40 pm ---You know, I never have a problem with RegEx  :D

--- End quote ---

"Just say NO"? ;)

Navigation

[0] Message Index

[*] Previous page

Go to full version