I need to match the text between two brackets. many post are made about it but non are supported by JavaScript because they all use the lookbehind. the text is as followed
"{Code} - {Description}"
I need Code and Description to be matched with out the brackets the closest I have gotten is this
/{([\s\S]*?)(?=})/g
leaving me with "{Code" and "{Description" and I followed it with doing a substring.
so... is there a way to do a lookbehind type of functionality in Javascript?