fork download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. string pattern = @"£(\d+),(\d+\.\d+) \(inc\. VAT\)";
  9. string input = @"£24,250.00 (inc. VAT)";
  10.  
  11. foreach (Match m in Regex.Matches(input, pattern))
  12. {
  13. Console.WriteLine(m.Groups[1].Value + m.Groups[2].Value);
  14. }
  15. }
  16. }
Success #stdin #stdout 0.05s 134592KB
stdin
Standard input is empty
stdout
24250.00