[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [multitail] Help about cs_re_s



Hi,

2011/7/25 Folkert van Heusden <folkert.mobiel@gmail.com>
>
> something like
> '[^']*' *:

Nice ! This does the trick with cs_re... on all lines. But by chance,
this pattern only appear on the lines of interest :-)

But what I try to do is highlight all the keys, no matter how many
there are, only on the "vars" line the last in the example here under

2011-07-25 12:33:22,075 - __main__ - 476 - DEBUG - Default: IN_ATTRIB:
/home/tarax/Upload/IMG_2390.JPG
2011-07-25 12:33:22,076 - __main__ - 113 - DEBUG - repr: <Event
cookie=166774 dir=False mask=0x40 maskname=IN_MOVED_FROM
name=IMG_2390.JPG path=/home/tarax/Upload
pathname=/home/tarax/Upload/IMG_2390.JPG wd=1 >, type: <class
'pyinotify.Event'>, id: 44296528
2011-07-25 12:33:22,076 - __main__ - 114 - DEBUG - dir: ['__class__',
'__delattr__', '__dict__', '__doc__', '__format__',
'__getattribute__', '__hash__', '__init__', '__module__', '__new__',
'__reduce__', '__re
duce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__',
'__subclasshook__', '__weakref__', 'cookie', 'dir', 'mask',
'maskname', 'name', 'path', 'pathname', 'wd']
2011-07-25 12:33:22,076 - __main__ - 115 - DEBUG - vars: {'maskname':
'IN_MOVED_FROM', 'wd': 1, 'name': 'IMG_2390.JPG', 'mask': 64,
'cookie': 166774, 'pathname': '/home/tarax/Upload/IMG_2390.JPG',
'path': '/home/tarax/Upload', 'dir': False}

In fact what I'd need, if I don't make any regex youth mistake, is to
highlight the inner substring in the following line:
cs_re_s:magenta:.*vars: \{(('[a-z][a-zA-Z0-9_]*': ).*[,]?)*\}$

Thank you very much for your support
Best