Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

Output parsing regexps don't get filenames with embedded &qu

(1/1)

stevehartwell:
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.

mandrav:

--- Quote from: stevehartwell ---I changed the most of the expressions to use [^:]+ in the filename part, and that seems to work.
--- End quote ---

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.

Navigation

[0] Message Index

Go to full version