S
sk.rasheedfarhan
Hi
My problem is, I am running my C++ code [for specifically coded for
Regular expressions ] and it is not giving good results for negation
of a regular expressions.
And my C++ code is Downloaded one here is the URL
http://src.opensolaris.org/source/xref/sfw/usr/src/cmd/less/less-381/regexp.c#regnode
I have checked Negation part related code. But I am not clear with my
problem as well with code. Here are my inputs and results
Regular expression :^[^\n]*?102 (.*?)\n
Regular expression Explanation: Any thing before 102 Other than new
line and after 102 a blank space, any thing minimal matches and new
line followed.
Input:102\b\n
Input explanation : 102 blankspace and Newline.
Result :False.
But for this input, it has give the Result as True. But it given wrong
Result.
I check the same thing with this URL http://regexlib.com/RETester.aspx
So please can any body sort out where is the problem in the above code
or can any one give me the best code which work for universal Regular
expression format.
Regards,
Rs.
My problem is, I am running my C++ code [for specifically coded for
Regular expressions ] and it is not giving good results for negation
of a regular expressions.
And my C++ code is Downloaded one here is the URL
http://src.opensolaris.org/source/xref/sfw/usr/src/cmd/less/less-381/regexp.c#regnode
I have checked Negation part related code. But I am not clear with my
problem as well with code. Here are my inputs and results
Regular expression :^[^\n]*?102 (.*?)\n
Regular expression Explanation: Any thing before 102 Other than new
line and after 102 a blank space, any thing minimal matches and new
line followed.
Input:102\b\n
Input explanation : 102 blankspace and Newline.
Result :False.
But for this input, it has give the Result as True. But it given wrong
Result.
I check the same thing with this URL http://regexlib.com/RETester.aspx
So please can any body sort out where is the problem in the above code
or can any one give me the best code which work for universal Regular
expression format.
Regards,
Rs.