How do I check if a string is a prefix of any possible other string that matches a given regex.

jonathan.slenders at gmail.com jonathan.slenders at gmail.com
Wed Oct 8 10:48:26 CEST 2014


Le mercredi 8 octobre 2014 01:40:11 UTC+2, MRAB a écrit :
> If you're not interested in generating an actual regex, but only in
> 
> matching the prefix, then it sounds like you want "partial matching".
> 
> 
> 
> The regex module supports that:
> 
> 
> 
> https://pypi.python.org/pypi/regex

Wow, thanks a lot! That really helps me.



More information about the Python-list mailing list