这是我的第一个问题,我弄乱了字符串。我有以下格式的一些字符串:括号内括号内的独立字符串
I will be here (I may or may not be here) (30-Apr-2013)
I am still here (15-Feb-2013)
I am still here(I may not be here) (I may not be here) (9-Apr-2013)
我需要从名称中分隔日期。正如你所看到的,括号的数量可能会有所不同,但我只需要最后一个(字符串的其余部分将被视为名称)。
预期输出:
1. array(0=> 'I will be here (I may or may not be here)' , 1=> '30-Apr-2013')
2. array(0=> 'I am still here' , 1=> '15-Feb-2013')
3. array(0=> ' I am still here(I may not be here) (I may not be here)' , 1=> '9-Apr-2013')
什么是实现这一目标的最佳途径?
@negvoters关心解释这个问题有什么问题? – Gogol 2016-03-15 07:24:30