Regular Expressions 101

Community Library Entry

0

Regular Expression
Python

r"
^(wsrep_provider_options(?!.*\bgcache.size\b).*)('$)
"
gm

Description

Regexp to add gcache.size to Galera cluster config, using Ansible's replace module

Submitted by Aurelio Llorente - 3 years ago