Remove date from string with regular expressions
问题 Ok, so I have a string $title_string which could look like any of the following: $title_string = "20.08.12 First Test Event"; $title_string = "First Test event 20/08/12"; $title_string = "First Test 20.08.2012 Event"; I need to end up with two variables: $title = "First Test Event"; $date = "20.08.12"; The formatting for the date should be converted to full-stops, regardless of what it was originally. The Regex string that I started with looks something like this: $regex = ".*(\d+\.\d+.\d+).*