Text exist - eliminate whitespace importance

  1. To remove white space from the string use variable.Trim.tostring

Have a view on this

2.RegEx is used to give you the pattern of a string. And If you wants to use regex to a string use below query

System.Text.RegularExpressions.Regex.Match(VariableName,“(pattern)”.Value.ToString

Regards,
NaNi

1 Like