regex - Can a URL contain a semi-colon? -


I am using a regular expression to convert plain text URLs to a clickable link.

@ (https: // ([- \ w \. +) + (????? \ d +) (/ ([\ w /_\.-] * (\ \ S +)))) @

However, sometimes in the body of the text, the URL finally calculates a per line with the semi-colon in the actual URL There is no.

  http://www.aaa.org/pressdetail.asp?PRESS_REL_ID=275; Http://www.aaa.org/pressdetail.asp?PRESS_REL_ID=123; Http://www.aaa.org/pressdetail.asp?PRESS_REL_ID=124  

Is it a semicolon (;) in the URL or semicolon can be considered a marker at the end of a URL ?

Unencoded can not be used except for its special purpose and how it will fit in my regular expression. (Which depends on this plan). Section 2.2:

Many URL schemes reserve some letters for a particular meaning: their presence in the planning-specific part of the URL is a specified word. If the character corresponding to an octet is reserved in a scheme, the octet should be encoded. Characters ";", "/", "?", ":", "@", "=" And "& amp;" There are letters that can be reserved for a particular meaning within a plan. No other character can be reserved within a plan.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -