Using GNU Regular Expressions I need to examine an URL like those below, checking the size key and value, I need to capture and block all URLs where 'size does not equal 10'. In other words "size=12", not acceptable. Here are examples...

Good URL pattern (size=10):
http://www.example.com/events/events?node=&start=0&size=10&sort=event

Bad URL pattern (size=9999):
http://www.example.com/events/events?node=&start=0&size=9999&sort=event

All around size, the other key and value pairs can be there, not be there, be in a different order, and the doamin and directory path combination may be different too.

Any good regexps for this?

Thanks a million.

Peter

_______________________________________________
New York PHP Users Group Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

http://www.nyphp.org/Show-Participation

Reply via email to