Regex
-
:confused:How would I write a regular expression of, the set of binary strings NOT containing 01 as a substring Thanks
I would recommend buying the book 'Mastering Regular Expressions' and downloading the program 'Expresso' to master basic regex.
Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.
-
:confused:How would I write a regular expression of, the set of binary strings NOT containing 01 as a substring Thanks
Try this :
string result = Regex.Replace(inputString, @"(01)", "");
-
Try this :
string result = Regex.Replace(inputString, @"(01)", "");
Thanks alot for yr response all. I am actually trying to find just a mere regular expression for a set of binary string that doesn't contain 01 as a substring. I am not doing any coding in a program at the moment.Tried searching on expresso but no clue. :confused:
-
Thanks alot for yr response all. I am actually trying to find just a mere regular expression for a set of binary string that doesn't contain 01 as a substring. I am not doing any coding in a program at the moment.Tried searching on expresso but no clue. :confused:
This site is very useful about Regular Expression . http://www.regular-expressions.info/[^] Did you see it ?
-
This site is very useful about Regular Expression . http://www.regular-expressions.info/[^] Did you see it ?
-
You're welcome :)