我正在尝试编写正则表达式,但是我经常遇到错误。
url
是http://safelease.be/any-word-here/name/
这是我的正则表达式:http:\/\/safelease.be\/([A-Z])\/name/
这些是错误:
http: matches the characters http: literally (case sensitive)
\/ matches the character / literally (case sensitive)
\/ matches the character / literally (case sensitive)
safelease matches the characters safelease literally (case sensitive)
. matches any character (except for line terminators)
be matches the characters be literally (case sensitive)
\/ matches the character / literally (case sensitive)