Hi Guys,
I am getting a string “40401.00\r\nservices” this by error i want only the number if i use remove last thing. i need to define the length which is not fixed. So can you help me out in this.
Thanks
Hi Guys,
I am getting a string “40401.00\r\nservices” this by error i want only the number if i use remove last thing. i need to define the length which is not fixed. So can you help me out in this.
Thanks
Please use Regex:
Regex.Match(theString, "^\S{0,}").Value
Thanks and regards,
Despi
following regex can help
use asign var = System.Text.RegularExpressions.Regex.Replace(VariableStr,"[([a-z A-Z \ *?)]","").ToString.
Thanks