May be we could 

``` 
[[ "$1" =~ "org.apache.spark.tools.*" ]] {
```

http://stackoverflow.com/questions/17420994/bash-regex-match-string