M
Maqsood Ahmed
Hello,
I am trying to create a Regex object which can match ASCII character
0x05 in a given string. I have written following code to accomplish
this:
System.Text.RegularExpressions.Regex regex = new
System.Text.RegularExpressions.Regex("[\\x05]*?",
System.Text.RegularExpressions.RegexOptions.Compiled);
Now when I try to do like this:
regex.Matches(str);
It gives me an array of Match objects of length equal to the length of
the string. Even if the ASCII character is not present in the string.
Can anyone tell what am I getting wrong here?
Regards
Maqsood Ahmed
Kolachi Advanced Technologies
http://www.kolachi.net
I am trying to create a Regex object which can match ASCII character
0x05 in a given string. I have written following code to accomplish
this:
System.Text.RegularExpressions.Regex regex = new
System.Text.RegularExpressions.Regex("[\\x05]*?",
System.Text.RegularExpressions.RegexOptions.Compiled);
Now when I try to do like this:
regex.Matches(str);
It gives me an array of Match objects of length equal to the length of
the string. Even if the ASCII character is not present in the string.
Can anyone tell what am I getting wrong here?
Regards
Maqsood Ahmed
Kolachi Advanced Technologies
http://www.kolachi.net