On 26/06/2012 10:13, Wouter Klouwen wrote:
On 25/06/2012 19:15, Ron Ganbar wrote:
Hi Wouter,
I tried this kinda thing for the regex strings:
regex =
re.compile('\\t+([-+]?\d+\.?\d*)\\t+([-+]?\d+\.?\d*)\\t+([-+]?\d+\.?\d*)\\t+([-+]?\d+\.?\d*)\\t+')


I'd recommend:

re.compile('[ \\t]+([-+]?\d+\.?\d*){4}[ \\t]+')

Whoops, just realised it should be:

re.compile('([ \\t]+([-+]?\d+\.?\d*)){4}[ \\t]+')


HTH,
   Wouter


--
Wouter Klouwen, Software Engineer
The Foundry, 6th Floor, Comms Building, 48 Leicester Sq, London WC2H LT
Tel: +442079686828 • Fax: +4420 79308906 • thefoundry.co.uk
The Foundry Visionmongers Ltd • Reg.d in England and Wales No: 4642027


_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to