I have the following string
aaa\bbb\ccc\ddd **16 April**\xyz
The date, in this case 16 April, changes depending on the start time of the event, the format of the rest of the string may change becoming either shorter or longer (below)
aaa\bbb\ccc\ddd\**eee** **16 April**\xyz
I would like to always be able to select '16 April' regardless of the rest of the length of the rest of variable. The date is not always '16 April' but the start date of whatever event I'm being fed by the external program.
I guess I could do
if April in 'aaa\bbb\ccc\ddd\**eee** **16 April**\xyz':
print 'success'
But I didn't know if there was a better way...
I need to do this so I can reformat the date to 16-04-2013..