Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^(https?:\/\/)?(([\w\.]+)\.([a-z]{2,6}\.?)(\/[\w\.]*)*\/?|((?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(\localhost)))(\:([0-9]{1,4}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5]))?$
/

Description

Регулярное выражения для проверки URL адреса сервера

Submitted by anonymous - 2 years ago (Last modified 2 years ago)