I'm a bit biased, but I think it's a bit more user-friendly to not require the pattern parameter to be quoted. Having to escape regexes is pretty difficult. In the docs, there is this example:
However, I don't think it works as advertised. You have to add two backslashes for the \ds to actually work. Otherwise, the actual filter looks like this and doesn't match what is expected:
