<br><br><div class="gmail_quote">On Thu, Aug 18, 2011 at 4:03 PM, Matt Funk <span dir="ltr"><<a href="mailto:matze999@gmail.com">matze999@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi guys,<br>
<br>
thanks for the suggestions. I had tried the white space before as well (to no<br>
avail). So here is the expression i am using (based on suggestions), but still<br>
no success:<br>
<br>
instance_linetype_pattern_str =\<br>
r'(([-+]?(\d+(\.\d*)?|\.\d+)([eE][-+]?\d+))?\s+){32}(.+)'<br>
<div class="im">instance_linetype_pattern = re.compile(instance_linetype_pattern_str)<br>
</div>results = instance_linetype_pattern.findall(line)<br>
print "results: "; print results<br>
<br>
<br>
The match i get is:<br>
results:<br>
[('2.199000e+01 ', '2.199000', '.199000', 'e+01', ': (instance: 0)\t:\tsome<br>
description')]<br>
<br>
<br>
btw: The line to be matched (given below) is ONE line. There are no line<br>
breaks (even though my email client adds them).<br>
<font color="#888888"><br>
<br>
matt<br>
</font><div><div></div><div class="h5"><br>
<br>
</div></div></blockquote></div><br>If a group matches multiple times, only the last match is accessible. The matches returned represent the inner groupings of the last match found.<br><br>JB-)<br>