1 Jun
2005
1 Jun
'05
11:40 a.m.
Hello,I'm new to boost and regular expressions in general.I'm using sregex_iterator (and the example provided in the documentation as a base) to search for all occurrences of "G0" in a string like these "M51DTnM54G0G1G1G1G1G1G1G1G1G1G1G1G1G1G0G1M54M54G1G0G1G0M54M54G1M54".I tried to use for RE: "G0", "(G0)+" and "(G0)", but it only finds 1 occurrence for "G0" when I expected to find 4. I also need to know the position of each occurrence.Thanks in advance.Tulio Cleber Bender Unisinos University Laboratorio de Automacao Industrial - LAI/C6 Av. Unisinos, 950 - Sao Leopoldo, RS - BRAZIL P.O.Box: 275 - ZIP: 93020-000 Phone: +(55) (51) 591-1122 Ext. 1794Visit our Campus at http://www.unisinos.br/ mailto:tbender@unisinos.br