Regular Expressions 101

Library entries

разбор адресной строки

Vote

1

Regular Expression
javascript

/
(?:([a-z]+)(?::\/\/))?((?:www.)?(?:\w+-?)+\w+(?:\.\w{2,3}){1,2})\/((?:(?:\w+-?\w+\/?)+)\.\w+)(?:(?:\?)([^#]*)(?:(?:#)(\w+))?)?
/
i

Description

Loading markdown...
Submitted by Stanislav - 6 years ago