- Subject: [jed-users] pcre_matches - shouldn't PCRE_DOTALL match newlines?
- From: Morten Bo Johansen <mbj@xxxxxxxxx>
- Date: Fri, 17 Sep 2021 10:23:33 +0200
Hi
If I have a multiline string, str = "abc\nabc", and do
str = pcre_matches(".*", str; PCRE_DOTALL);
I would expect "str[0]" to be the same "abc\nabc", but I only
get "abc".
This also happens without PCRE_DOTALL, so it doesn't seem to
have any effect. Is my syntax wrong?
How do I match all characters in a whole string across lines
with pcre_matches()?
Thanks,
Morten
_______________________________________________
For list information, visit <http://jedsoft.org/jed/mailinglists.html>.
[2021 date index]
[2021 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]