You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is very useful when you want to match a regular expression with some parts matching with case, and others not, because bash lacks [inline regexp modifiers](https://www.rexegg.com/regex-modifiers.html) such as `(?i)`.
67
+
63
68
Forms: functional, set.
64
69
65
70
#### src/regexp_quote.sh
@@ -69,12 +74,14 @@ E.g. you can use `variable=$(regexp_nocase expression)` (functional form) or `se
69
74
Takes a regular expression (as used in `[[ =~ ]]`) as only parameter, and returns a modified version that quotes (or escape) special characters to make them match literally. A bit like `fgrep`.
0 commit comments