URL groups with negative rules

I use this regex '/?wpdmdl=[0-9]+' pattern with negative rules to protech '{mydomain}/?wpdmdl=77' but it's not working.

When I use '/contact/' pattern for '{mydomain}/contact/' it's working fine.

Any advice for me, leave a comment, I appreciate that.

Thanks.