a question of using regular expression
Stephen
fungho at sinaman.com
Wed Nov 28 02:46:00 EST 2001
I am now using org.apache.regexp as the regular expression library in
my Java code. I meet a difficulty in implementating the following
regular expression, I don't know how to describe it (because of my
poor English), so I take an example:
String sText0 = "good morning!";
String sText1 = "morning! you are very good!";
RE r = new RE("???????????"); // I have no idea in this
actually, I just want to get the string which has string "good" at the
start. Therefore, in this case, sText0 can be got only. How can I do
this? Thanks!
Stephen
More information about the Python-list
mailing list