ppr
(Peter Preuss)
2
@Sarah_Tang
give a try on
and refer on groups
(\d+\.?)(?:\,?)(\d+)
As an alternate: catch also comma and replace it afterwards
>Regex.Matches("(* 10.00_) (* 22,000_)","[\d,.]+").Cast(Of Match).Select(Function (m) m.Value.Replace(",","")).toArray
<- string[2] { "10.00", "22000" }
Following your direction for replacing the unwanted you can try:
For some additional starter help have a look here: