Question: is regex faster than contains?
Answer: Contains is slower when you compare it to a compiled regular expression. Considerably slower, even! To determine which is the fastest you will have to benchmark your own system.