hi all.
i'm very new to regular expressions and i wanna check the validness of an url with eregi().
the url has the following style:
first there come 2 chars (e.g. "eg" or "de") for the language. after this there's a slash "/".
now there can come an endless number of rubrics, all separated with slashes. the rubrics can contain chars, numbers and "-", but nothing else.
in the end there comes the item, it's different to the rubrics because it's in the end and it has the suffix ".html" and also can contain commas ",".
so a valid link would be
eg/rubric-1/another-rubric/the-last-rubric/chosen-item,1,2.html
now how can i do that with a regex? i tried some hours but do not succeed, even after reading tutorials on google... :-/
i'd be very happy if you could help me.
greets
Josh