I made a test on my home computer using 127.0.0.1 as the IP address. I made some rewrite rules with a ruleset as follows:
RewriteEngine On
RewriteRule ^x\/x$ /letterx [NC,L]
RewriteRule ^y/y$ /lettery [NC,L]
When I go in my browser and enter 127.0.0.1/x/x, I get redirected to 127.0.0.1/letterx. When I enter 127.0.0.1/y/y, I get redirected to 127.0.0.1/lettery.
Looking online at various sources of regular expressions, no article claims that / is a character that needs escaping, but http://regex101.com/ claims it does.
Why in this set of code do both urls I try redirect successfully? Shouldn't one throw a failure? Is there a bug in mod_rewrite I'm not aware of? You would think based on many websites that the second line of code above should fail and the third line should work, but I'm puzzled.