mercredi 6 mai 2015

Regex to pick a part of a word

my text has $1 per Lap to someone. 

I have above kind of text.So can you tell me how to pick the per part from it.I know how to pick the $ amount.It's like this:

new Regex(@"\$\d+(?:\.\d+)?").Match(s.Comment1).Groups[0].ToString()

Any help would be highly appreciated.

Aucun commentaire:

Enregistrer un commentaire