In python2.6 and earlier you need indices in the format specs
try:
try:
'\x1b[4m{0}\x1b[0m'.format(m.group())
Recommended Tutorials:
Highlight/Underline a string | ValueError: zero length field name in format
|
|
Messages In This Thread |
Highlight/Underline a string | ValueError: zero length field name in format - by searching1 - Jul-01-2019, 02:40 AM
RE: Highlight/Underline a string | ValueError: zero length field name in format - by metulburr - Jul-01-2019, 03:06 AM
|