Simple code and suggestion
Veek M
vek.m1234 at gmail.com
Thu Dec 8 23:29:12 EST 2016
g thakuri wrote:
> Dear Python friends,
>
> I have a simple question , need your suggestion the same
>
> I would want to avoid using multiple split in the below code , what
> options do we have before tokenising the line?, may be validate the
> first line any other ideas
>
> cmd = 'utility %s' % (file)
> out, err, exitcode = command_runner(cmd)
> data = stdout.strip().split('\n')[0].split()[5][:-2]
>
> Love,
import re
? regex/pattern matching module..
More information about the Python-list
mailing list