Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: stevehartwell on April 05, 2005, 04:35:22 am

Title: Output parsing regexps don't get filenames with embedded &qu
Post by: stevehartwell on April 05, 2005, 04:35:22 am
The regular expressions used to do output parsing don't match filenames with embedded hyphens correctly.  When I test a string using the very handy test feature, the string "my-file.cpp" results in "file.cpp" in the filename part.

I changed the most of the expressions to use [^:]+ in the filename part, and that seems to work.
Title: Re: Output parsing regexps don't get filenames with embedded
Post by: mandrav on April 05, 2005, 09:08:26 am
Quote from: stevehartwell
I changed the most of the expressions to use [^:]+ in the filename part, and that seems to work.

That's the reason it's there: to edit it to your heart's contents ;)
Although, if an absolute filename is used under win32, you will get only the drive-letter with this regex...

Yiannis.