pourquoi cette difference
Bonjour,
pouvez-vous m'aider à résoudre ce mistère :
j'ai ce texte :
Code:
1 2 3
| int _C_._C_1_Afcs2._C_2_AfcsB2._C_2_AfcsFctB2._C_5_AfcsNomB2._C_9_RtmSchNomB2._C_2_RtmSchNomFctB._C_1_StbB._C_1_StbColB._C_1_StbColCmdB._I26_B_Gnd
float _C_._C_1_Afcs2._C_2_AfcsB2._C_2_AfcsFctB2._C_5_AfcsNomB2._C_9_RtmSchNomB2._C_2_RtmSchNomFctB._C_1_StbB._C_1_StbColB._C_1_StbColCmdB._O0_S_StbColCmd.R_CAntiPioPitUp
float _C_._C_1_Afcs2._C_2_AfcsB2._C_2_AfcsFctB2._C_5_AfcsNomB2._C_9_RtmSchNomB2._C_2_RtmSchNomFctB._C_1_StbB._C_1_StbColB._C_1_StbColCmdB._O0_S_StbColCmd.R_CIntRcntr |
je voudrais matcher la deuxième ligne grace à cette expression :
Code:
#(?:\*?\w+[_.])*\*?StbColCmdB[_.]\*?\w*S_StbColCmd[_.]\*?\w*R_CAntiPioPitUp#
Comme ça ne marche pas j'ai essayer plusieur choses et ça, ça marche :
Code:
#(?:[*\w.])*\*?(\w*)StbColCmdB[_.]\*?\w*S_StbColCmd[_.]\*?\w*R_CAntiPioPitUp#
Que la deuxième regex marche ne me perturbe pas mais la première devrais marcher tout aussi bien (à mes yeux)...
Merci d'avence pour vos lumières.
++Florent.