Whereas usually a large currency value like USD 123456789
is formatted as USD 123,456,789
, here in Pakistan, such a number is formatted as Rs. 12,34,56,789/-
(last 3 digits grouped, then every 2 digits grouped together, the entire string followed by a /-
.
Is it possible to use the default Angular Currency
pipe to achieve this? If not, what's the correct regex that I can use to achieve this formatting in my custom pipe's transform
method?