I have an expression that I want to modify. This expression, for the most part does what I want, however, I need to to also match for case insensitive.
I am matching names of people as well as business names. So, the following should be matched and currently is not:
tim's baKeRY
Here is the expression
#^[A-Z][a-z]+[ -][A-Z](\')?(?(1)[A-Z])[a-z]+$#
EDIT
Thanks to Gustav, I edited my expression to:
#^[a-zA-Z]+[ -][a-zA-Z](\')?(?(1)[a-zA-Z])[a-z]+$#
This gives me case insensitivity which was part of what I needed but I also need to match something like tim's bakery