Teo_Yanchev

Regex Help

Nov 19th, 2020 (edited)
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.18 KB | None | 0 0
  1. Wrong -> string regex = @">>(?<name>[A-Za-z\s]+)<<(?<price>[0-9]*(.\d+)?)[0-9]*!(?<quantity>\d+)";
  2.  
  3. Right -> string pattern = @">>(?<name>\w+)<<(?<price>\d+\.?\d*?)!(?<qty>\d+)\b";
Add Comment
Please, Sign In to add comment