bmanikandan
01-29-2009, 01:38 AM
#include all necess... headers
main(){
RWCString aString("AA098765");
RWCRegexp reg("^[A-Z]{2}[0-9]{6}$");
cout << "Rx = " << aString(reg) << endl;
}
Output
======
Rx =
I am new to RWCRegexp class.
I run the above program, but I didn’t get the output. Please explain why I am not getting the output. Thank in advance.
Is the RegEX is correct, i need to accept only the string with the given regexp format. Please help me ASAP
main(){
RWCString aString("AA098765");
RWCRegexp reg("^[A-Z]{2}[0-9]{6}$");
cout << "Rx = " << aString(reg) << endl;
}
Output
======
Rx =
I am new to RWCRegexp class.
I run the above program, but I didn’t get the output. Please explain why I am not getting the output. Thank in advance.
Is the RegEX is correct, i need to accept only the string with the given regexp format. Please help me ASAP