so I have a formatting string that can be $#,###.00 or "£#,###.00 and I would like to get the currency symbol form it here is the code that I'm using:
currencySymbol = format.match(/\p{Sc}/);
I would like currencySymbol to be equal to "$" or "£" but it's not working currencySymbol is null.
format.charAt(0)?