regex to get number between two letters code example Example: get everything between two characters regex (?<=\[)(.*?)(?=\])