RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 2
Title Test Details Pattern Title
Expression
(?<!\\)\"(?:[^\"]*(?<!\\)\\\")*[^\"]*\"
Description
Matches quoted strings. Do not use anchors or it will not work as expected
Matches
"" | "\\" | "\"" | "abcd" | "ab\"cd" | "abcd\\"
Non-Matches
"ab | ab" | "ab\" | \"ab" | \"ab\"cd"
Author Rating: The rating for this expression. Wesley Menezes
Title Test Details Pattern Title
Expression
^(?:(?<scheme>[a-z]+):\/\/)?(?:(?<usern>[a-z0-9_.]*)(?::(?<passw>[a-z0-9_.]*))?@)?(?<domain>(?:(?:[a-z][a-z0-9_-]+\.?)+|[0-9]{1,3}(?:\.[0-9]{1,3}){3}))(?::(?<port>[0-9]+))?(?<path>(?:\/[.%a-z0-9_]*)+)?(?:\?(?<query>(?:&?[][a-z0-9_]+(?:\=?[a-z0-9_;]*)?)+))?(?:#(?<fragment>[a-z0-9_]+))?$
Description
Matches URI's! "filename.ext" is part of path. ER can't differ file name from directory name. only domain is required. scheme://usern:passw@domain:port/path/file.ext?querystring#fragment
Matches
domain | ftp://localhost:21/ | 192.168.254.0 | http://username:[email protected]:1234/path1/pathX/filename.ext?query=string&example=v1#fragment
Non-Matches
non-alpha://domain | domain:non-number
Author Rating: The rating for this expression. Wesley Menezes
   Displaying page 1 of 1 pages; Items 1 to 2

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials