[langage] autre probleme de regex
bonjour a tous,
voici mon probleme :
Code:
m/^($Folder[^.\\]+.(?:h|cpp)):(\d+):\serror\s(\d+)(.*)$/
et le fichier qui analyses est de ce type :
Citation:
Z:\bibi\source\navicore\common\dev\audio\wince_speak.cpp:702: error 917 (Note): Prototype coercion (arg. no. 1) int to unsigned char
--- Module: Z:\bibi\source\navicore\common\dev\gps\flash.gps_param_io.cpp
#_error ERROR: Only Mac or Win32 targets supported!
C:\TornadoSim\target\h\arch\simnt\va_simnt.h:23: error 309 (Error): #error ERROR: Only Mac or Win32 targets supported!
# _error "Your compiler version is not recognized by STLport. Please edit <config/stl_mycomp.h>"
Z:\bibi\source\include\stlport\config\stl_mycomp.h:33: error 309 (Error): # error "Your compiler version is not recognized by STLport. Please edit <config/stl_mycomp.h>"
status = pmgr_writeParamBlock(GPS_PARAM_BLOCK_NAME, sizeof(GPS_PARAMS), (char *_)¶ms);
Z:\bibi\source\navicore\common\dev\gps\flash.gps_param_io.cpp:62: error 1924 (Note): C-style cast
status = pmgr_readParamBlock(GPS_PARAM_BLOCK_NAME, sizeof(GPS_PARAMS), (char *_)¶ms, &nbytes);
Z:\bibi\source\navicore\common\dev\gps\flash.gps_param_io.cpp:87: error 1924 (Note): C-style cast
mais le probleme avec cette regex c que quand il rencontre un fichier de ce type là :
Citation:
Z:\bibi\source\navicore\common\dev\gps\flash.gps_param_io.cpp
pour lui l'extension est gps_param_io.cpp po cpp dc il ne matche po avec ma regex....
quelqu'un aurait il une solution????
merci d'avance