After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 640489 - $ and ^ do not match lines if G_REGEX_MULTILINE|G_REGEX_DOTALL is set
$ and ^ do not match lines if G_REGEX_MULTILINE|G_REGEX_DOTALL is set
Status: RESOLVED INCOMPLETE
Product: glib
Classification: Platform
Component: gregex
2.16.x
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2011-01-24 23:25 UTC by Olivier Sessink
Modified: 2011-02-15 05:04 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Olivier Sessink 2011-01-24 23:25:10 UTC
if both G_REGEX_MULTILINE and G_REGEX_DOTALL are set, ^ and $ do not match the start and end of a line. 

if only G_REGEX_MULTILINE is set it works as expected.
Comment 1 Matthias Clasen 2011-01-28 03:52:31 UTC
can you give me a testcase ?
Comment 2 Matthias Clasen 2011-02-15 05:04:41 UTC
Testcase in 

http://git.gnome.org/browse/glib/commit/?id=a46885242b3566a7f6afa4ca5cf5d3ffcf3d977d

seems to show it working fine on my system. Please reopen if you have a testcase that demonstrates your problem.