2.6
0
openms
openms-thirdparty
blast
ctdopts
doi:10.1186/1471-2105-9-163
^[^$]
^ *((?:\"[^\"]*\" +)|(?:[^ \"]+ +))*((?:\"[^\"]*\")|(?:[^ \"]+)) *$
^ *[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?( *[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?)* *$
^ *[+-]?[0-9]+( *[+-]?[0-9]+)* *$
#def quote(s):
#set $s = [ _ for _ in $s.split(" ") if _ != "" ]
#set $q = False
#for $i, $p in enumerate($s):
#if $p == "":
#continue
#end if
#if $p.startswith('"'):
#set $q = True
#end if
## #if p.startswith('-'):
## #set p = "\\" + p
## #elif p.startswith('"-'):
## #set p = "\\" + p[1:]
## #end if
#if not $q:
#set $s[i] = '"%s"' % p
#end if
#if $p.endswith('"'):
#set $q = False
#end if
#end for
#return " ".join($s)
#end def