Regex snippets

Line ^ = line start $ = line end Text between brackets \(.*?\) \( = escape left parenthesis .*? = match all . = any character * = any number of times (0 or more, as opposed to + for 1 or more) ? = optionally (i.e. catch the instances in which there is nothing between brackets) \) = escape right parenthesis Single character Wildcard . = match any single character. \w = match any single alphanumeric…