R
Regular Expression for
Guest
Hello Team,
We have a requirement to get the currency symbol from currency string . Ex : "AFN589.00"
Please suggest some alternative solution.
Console.WriteLine(ex.Match("$589.00").Value);
Console.WriteLine(ex.Match("AFN589.00").Value);
Thanks & Regards,
Ajit Kumar Subudhi,
ajitsubudhi2000@gmail.com
Continue reading...
We have a requirement to get the currency symbol from currency string . Ex : "AFN589.00"
Please suggest some alternative solution.
- The regular expression for Currency Symbol is not working for some currency symbols
- Regex ex = new Regex(@"\p{Sc}");
- EX1-It returns $ in following case
Console.WriteLine(ex.Match("$589.00").Value);
- EX2-It does not return AFN in following case
Console.WriteLine(ex.Match("AFN589.00").Value);
Thanks & Regards,
Ajit Kumar Subudhi,
ajitsubudhi2000@gmail.com
Continue reading...