I have a problem with my RegExp.

I need to replace some URLs with other URLs. I am using a URL-rewrite filter). The problem is that when the RegExp match just parts of the string, it does a replace anyway. I want it to only replace if it matches the entire targetstring.

Target strings might be like this:

1: /news/public.asp?myid =1234
2: /justadirectory
3: /justadirectory/
4: /justadirectory/something...