Regex - corrected, ignore prev mail!

Thanks Robert and Matthew for these details!
whats the meaning of OP?
The exact problem could be
^.*(abc|def).*(?!ghi).*$
- which doesnt do what one would expect (no, result is what to be

expected, but not wanted :slight_smile:

路路路

is that possible in one regex (best returning the matching string)
Although likely never needed in real-world problems...
thanks
Berg

Maybe other list members understand what your "problem" is,
but I don't... your often used description "doesn't do what
one would expect/want" doesn't really help at all.

If you want to get replies that do not have to speculate
so much on the OP's (original poster - that's you) intentions,
you really must give a more detailed description of your
"problem", preferably with examples of strings you want to
match and strings you do not want to match.

Regards,
Marcus

路路路

Am 26.06.2016 um 10:00 schrieb A Berger:

Thanks Robert and Matthew for these details!
whats the meaning of OP?
The exact problem could be
^.*(abc|def).*(?!ghi).*$
- which doesnt do what one would expect (no, result is what to be expected, but not wanted :slight_smile:
is that possible in one regex (best returning the matching string)
Although likely never needed in real-world problems...

--
GitHub: stomar (Marcus Stollsteimer) 路 GitHub
PGP: 0x6B3A101A