Goto Top

Regex help required (include with exclude criteria)

Hi all,

We are trying to create an expression that matches, if the sequence is containing the string "test123".
However it should not match, if the sequence also contains the string "nowEXCLUDE".

Example sequences:
1. "abc def ghi jkl mno" --> should not match
2. "abc def ghi test123 jkl mno" --> should match
3. "abc def ghi test123 jkl nowEXCLUDE mno" --> should not match
4. "abc def ghi jkl nowEXCLUDE mno" --> should not match*

We are using the library CATLRegExp and tried a lot on but are not successful.

Any help is greatly appreciated. Thank you.

Content-Key: 5452109319


Printed on: April 22, 2024 at 14:04 o'clock

Mitglied: 5175293307
Solution 5175293307 Jan 18, 2023 at 11:03:09 (UTC)
Goto Top
Member: Schinken77
Schinken77 Jan 18, 2023 at 13:59:04 (UTC)
Goto Top
This works as expected, thank you so much!
Mitglied: 5175293307
5175293307 Jan 18, 2023 at 20:31:57 (UTC)
Goto Top
You're welcome.
Member: reynolds2301
reynolds2301 Mar 02, 2023 at 04:49:45 (UTC)
Goto Top
The solution worked for me thanks to the community and the members for the solution.