Regex Raptor
Bash 4.1 (3.2+) checker (Alpha)
Match Find All (Generate) Auto-escape Regex
Regex:
Text:
Result:
 
#!/bin/bash
# return_bash_match.sh
# This script is used on the
# back-end to do the "Match"
#
# Take the escaped REGEX string generated by the site and use it in the 'regex' param
regex="$1"
var="$2"

if [[ "$var" =~ $regex ]]
then
	echo "matches"
else
	echo "doesn't match!"
fi