Hello all,
I need a regex (to be used in .htaccess) with the following attributes, capturing the four-digit number and the text following it:
Match:
/9876/text_text_more_text_still_more_text
/8765/1234_text_text_text
Do not match:
/2010/08/01/text_text_more_text_still_more_text
/2010/08/01/text-text-more-text-still-more-text
So far I have:
/([0-9]+)/([^-/]+)
This unfortunately matches the do-not-match pattern. I'm definitely a neophyte at regexes but I think if I had a pointer in the right direction I could figure it out.
Thanks in advance.