QRegExp: Match double-quoted text
-
Hello guys,
I want to match some quoted text like this "asdfhl"
I tried many Regex Strings but something like "[^"']*" just gives me two quotes, without any text or space between.Any ideas? I recently asked on IRC but nobody seemed to be able to help me. Thanks in advance.
kind regards,
rapidcc -
Probably you need this (at least it works on Perl):
@"([^"']*)"@
-
Thank you very much for this quick reply!
I'm a bit confused because I had used this very regex earlier and it didnt work. However, it works perfectly now.
kind regards,
rapidcc -
[quote author="rapidcc" date="1323702626"]
I'm a bit confused because I had used this very regex earlier and it didnt work. However, it works perfectly now.
[/quote]Please consider that there are slightly differences between regexp engine implementations. That is why most of such implementation are becoming more and more perl-compatible.
In your particular case there was a problem with the atom, that was not indicated.