Regular Expression Complex Matching

1 day ago 8
ARTICLE AD BOX

I'm working on a php project and I need to extract some informations from strings like :

COROLLA CROSS (07/22>09/25<)

I tried different patterns without success, such as:

preg_match("/(?P<name>\w+) ((?P<digit>\d+)/(?P<digit2>\d+)>(?P<digit3>\d+)/(?P<digit4>\d+))</", 'COROLLA CROSS 07/22>09/25<', $matches);

I want to extract :

name : COROLLA CROSS from: 07/22 to: 09/25

Thanks for your help

Read Entire Article