I am trying to bulk rename around 10,000 files. I have a tool which can use Regex to do this.
I simply need a regex matching " (" and everything after that (space, parenthesis, everything).
Anyone able to help with this really simple problem real fast?
Parentheses are meta-characters in regex, i.e. they mean something special. If you want to signify a literal character that happens to be a meta-character, you need to escape it using a backslash (
\). For example, consider the caret (^), which is a meta-character that matches the beginning of a string.You can read up on the difference between special and literal characters in regexen and how to escape them here: http://www.regular-expressions.info/characters.html