]> git.seodisparate.com - swaybar_info/commitdiff
Update README.md with better regex example
authorStephen Seo <seo.disparate@gmail.com>
Tue, 23 Aug 2022 08:22:27 +0000 (17:22 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Tue, 23 Aug 2022 08:22:27 +0000 (17:22 +0900)
README.md

index f946bc08dbdcc1bc90a7048fe1b1b1757c4a3094..6197b67cf56e073ff21ce52130af302f2e6b3897 100644 (file)
--- a/README.md
+++ b/README.md
@@ -80,8 +80,7 @@ That sometimes becomes:
 Then this text can be parsed with a regex like:
 
     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
 being passed verbatim to a shell.