jed-users mailing list

[2021 Date Index] [2021 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

[jed-users] pcre_matches - shouldn't PCRE_DOTALL match newlines?


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]