问问题
1062 次
3 回答
1
This should mark always: /exl/1241374456
\/exl\/\d{10}
于 2013-09-22T14:32:41.780 回答
0
If you need the ten-digit identifier use this;
www\.examplesite\.com/user\?=/exl/(?<Number>[0-9]{10})/in/home
Demo here.
and to match the URL of the type you mentioned,use this;
www\.examplesite\.com/user\?=/exl/[0-9]{10}/in/home
Demo here.
or to keep it simple use this(but please note this ain't going to distinguish between a URL and a simple ten-digit number anywhere in the text)
[\d]{10}
Demo here.
Hope it helps.
于 2013-09-22T14:15:30.807 回答
0
Well, if it’s going to be the only ten-digit identifier in the string, you can just use [0-9]{10}
.
于 2013-09-22T14:17:30.227 回答