From 490e85fd7a0766ed77f401e4ca3032701b716c7f Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Tue, 23 Aug 2022 17:22:27 +0900 Subject: [PATCH] Update README.md with better regex example --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index f946bc0..6197b67 100644 --- 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.