extract substrinbg between two characters using regex code example Example: get everything between two characters regex (?<=\[)(.*?)(?=\])