Re: regexp qns

2007-01-20 Thread James Stroud
[EMAIL PROTECTED] wrote: > James Stroud wrote: > >>[EMAIL PROTECTED] wrote: >> >>>hi >>>suppose i have a string like >>> >>>test1?test2t-test3*test4*test5$test6#test7*test8 >>> >>>how can i construct the regexp to get test3*test4*test5 and >>>test7*test8, ie, i want to match * and the words before

Re: regexp qns

2007-01-19 Thread Gabriel Genellina
<[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > hi > suppose i have a string like > > test1?test2t-test3*test4*test5$test6#test7*test8 > > how can i construct the regexp to get test3*test4*test5 and > test7*test8, ie, i want to match * and the words before and after? > thanks

Re: regexp qns

2007-01-19 Thread eight02645999
James Stroud wrote: > [EMAIL PROTECTED] wrote: > > hi > > suppose i have a string like > > > > test1?test2t-test3*test4*test5$test6#test7*test8 > > > > how can i construct the regexp to get test3*test4*test5 and > > test7*test8, ie, i want to match * and the words before and after? > > thanks > > >

Re: regexp qns

2007-01-19 Thread James Stroud
[EMAIL PROTECTED] wrote: > hi > suppose i have a string like > > test1?test2t-test3*test4*test5$test6#test7*test8 > > how can i construct the regexp to get test3*test4*test5 and > test7*test8, ie, i want to match * and the words before and after? > thanks > py> import re py> s = 'test1?test2t-

regexp qns

2007-01-19 Thread eight02645999
hi suppose i have a string like test1?test2t-test3*test4*test5$test6#test7*test8 how can i construct the regexp to get test3*test4*test5 and test7*test8, ie, i want to match * and the words before and after? thanks -- http://mail.python.org/mailman/listinfo/python-list