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