0

我需要一个正则表达式来验证 webService。我尝试了不同的方法,但没有奏效。

例如

addNotificationForm_webURLAdd-regexp=^[(http|https)://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?]

但它给了我错误:

Coercion of (http|https)://([w-]+.)+[w-]+(/[w- ./?%&=]*)? to type java.util.regex.Pattern (via String --> java.util.regex.Pattern) failed: Illegal character range near index 34 (http|https)://([w-]+.)+[w-]+(/[w- ./?%&=]*)? ^

请帮忙。

4

0 回答 0