Hi,
 
Given two strings I need to determine weather or not one of the strings is a subset of the other string. In at least one of the strings there is a star "*" which can be any character or a null there is a maximum of one star per string.
 
So basically I want the function to return true if you try to match
st*r and star
st*r and str
sta*rshine and star
st* and star
st*r and stststar
t*r and s*ar
 
 
I tried making a function which splits the input by "*" but don't really know how to continue after that. I have been trying to use reg ex, but with little success.
 
Thank you
 
Mikes
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to