I've been noticing bad urls getting into the cache. Need
to check url submissions against the following
regex: "http://[a-zA-Z0-9.-]+(:\d{1,5})?/[a-zA-Z0-
9/.~_-]{0,250}"
That might work as a preprocessing filter but it's surely
not enough. Since you have to do a complete check anyway and
regex matching takes a good amount of performance (AFAIK)
I'd would simply forget about using a regex for this.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=643728
That might work as a preprocessing filter but it's surely
not enough. Since you have to do a complete check anyway and
regex matching takes a good amount of performance (AFAIK)
I'd would simply forget about using a regex for this.