Why does the regex in bash works only if it is a variable and not directly?
50943
shell test whether multiple lines string contains specified pattern in last line
153555
Why does bash "echo [t]" result in "t" not "[t]"
98020
Why is my Bash script returning a syntax error?
43973
grep - why do brackets in grep pattern remove the grep process from ps results?
51442
Why does bash variable expansion retain quotes?
42740
new Regexp doesn't work
15434
Regular expressions in a Bash case statement
56072
How do I compare two string variables in an 'if' statement in Bash?
26948
How does this [t]ricky bracket expression in grep work?
113604
Why does this regex with no special character match a longer string?
141693
Why is this match pattern unreachable when using non-literal patterns?
119229
Why does "grep '.*[s]' file" work and "grep .*[s] file" doesn't?
120214
What's the difference between <<, <<< and < < in bash?
6654
How do I iterate over a range of numbers defined by variables in Bash?
125038
What is a "Nested Quantifier" and why is it causing my regex to fail?
131930
How does storing the regular expression in a shell variable avoid problems with quoting characters that are special to the shell?
103604
Does bash recognize a variable declaration as string if you do not put the quotation marks?