simple bash regex example
since versions 3 bash has included a simple regular expression operation "=~"
below is a simple example of it in action
######### example code #########
#search for a process and print specific section
ps=`ps aux | grep stuff | awk '{print $12 "_" $13}' `
...
#do some stuff
if [[ $ps =~ "something im looking for" ]]; then
if [[ $ps =~ "something im looking for" ]]; then
#do what you want
fi
##############################
##############################