in reply to RegEx advice needed
The first line seems to be correct, in the data you have 'rdtg7.0.4.7'. The second line is due to matching: "Hardware version: 0;", the third is correct. And in the last it is the pattern ([^.]+) that matches anything but '.' so it is clear why 'SW_REV: CG4D_05.3.02' was matched only to the first '.'.FW: rdtg7.0.4.7 FW: 0; FW: 4.1.4p FW: CG4D_05
I can't say how should you fix the pattern because I don't know the other data.
|
|---|