cic
28th October 2013, 14:21
Hi, it must be an easy to solve problem i hope :)
what is the regular expression for the pattern:
G|xxxx - a capital letter | arbitrary word
I used the patterns below but they failed:
rule.pattern = QRegExp("\\b([A-Z])\\|([a-z])\\s");
or
rule.pattern = QRegExp("\\b([A-Z])|([a-z])\\s");
the thing is i have no idea how to express vertical bar in this case.
anyone can help?
ps: i find the documentation from QRegExp is somehow not clearly explain all the cases.
is there any better tutorials for that?
what is the regular expression for the pattern:
G|xxxx - a capital letter | arbitrary word
I used the patterns below but they failed:
rule.pattern = QRegExp("\\b([A-Z])\\|([a-z])\\s");
or
rule.pattern = QRegExp("\\b([A-Z])|([a-z])\\s");
the thing is i have no idea how to express vertical bar in this case.
anyone can help?
ps: i find the documentation from QRegExp is somehow not clearly explain all the cases.
is there any better tutorials for that?