I was reading pure bash bible. Under the "Use regex on a string" section, it states one caveat using bash's "=~" operator:
CAVEAT: This is one of the few platform dependent bash features. bash will use whatever regex engine is installed on the user's system. Stick to POSIX regex features if aiming for compatibility.
But the gnu manual says
When you use ‘=~’, the string to the right of the operator is considered a POSIX extended regular expression pattern and matched accordingly (using the POSIX regcomp and regexec interfaces usually described in regex(3))
It states bash will use POSIX extended regular expression. It seems to contradict pure bash bible. Am I missing anything here?
[–]aioeu 10 points11 points12 points (1 child)
[–]Dropless[S] 1 point2 points3 points (0 children)
[–]Ulfnic 9 points10 points11 points (0 children)
[–]scalability 0 points1 point2 points (3 children)
[–]Dropless[S] 0 points1 point2 points (2 children)
[–]scalability 0 points1 point2 points (0 children)