Update README.md with better regex example
This commit is contained in:
parent
5032b24fc9
commit
490e85fd7a
1 changed files with 1 additions and 2 deletions
|
@ -80,8 +80,7 @@ That sometimes becomes:
|
||||||
Then this text can be parsed with a regex like:
|
Then this text can be parsed with a regex like:
|
||||||
|
|
||||||
status_command $HOME/.config/sway/swaybar_info \
|
status_command $HOME/.config/sway/swaybar_info \
|
||||||
'--regex-cmd=$HOME/scripts/mpc/mpcCommand.sh[SPLIT]simple[SPLIT]^\(.\*?\)\(?:\(?:COLORSPLIT\)\([A-F0-9]{6}\)\)?$'
|
'--regex-cmd=$HOME/scripts/mpc/mpcCommand.sh[SPLIT]simple[SPLIT]^\(.\*?\)\(?:COLORSPLIT\([A-F0-9]{6}\)\)?$'
|
||||||
|
|
||||||
|
|
||||||
Note that some characters like `*` or `(` had to be escaped because they are
|
Note that some characters like `*` or `(` had to be escaped because they are
|
||||||
being passed verbatim to a shell.
|
being passed verbatim to a shell.
|
||||||
|
|
Loading…
Reference in a new issue