10 Nov
2021
10 Nov
'21
09:09
Op woensdag 10 november 2021 07:16:19 CET schreef Jiri Slaby:
On 05. 11. 21, 10:45, Freek de Kruijf wrote:
To parse this line in Python with regex, would that part always be recognized by \[\s*\w+[0-9]+\] or would it be better to use \[.+\] ?
https://elixir.bootlin.com/linux/latest/source/kernel/printk/printk.c#L1266
I doubt it will change much, if at all. So yes, \w+[0-9]+ should work.
regards,
Thanks! -- fr.gr. member openSUSE Freek de Kruijf