Here is sentence : AVS 26 $2,426.00 0 $0.00 13 ($1,333.80) $1,092.20
I want to remove : 0 $0.00 13 ($1,333.80) $1,092.20 (I need only first 3 value and value length can’t be same for all time)
For example : 1) AVS 26 $2,426.00 0 $0.00 13 ($1,333.80) $1,092.20
2) AVVS 0 $244.00 0 $0.00 13 ($1,333.80) $1,092.20
1 Like
Hi,
Can you try the following expression?
System.Text.RegularExpressions.Regex.Match(text,"^\S+\s+\S+\s+\S+").Value
note: text is your sentence.
Regards,
1 Like
it’s worked. Thank you.
1 Like