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 1
Title Test Details sip and sips
Expression
^(sip|sips)\:\+?([\w|\:?\.?\-?\@?\;?\,?\=\%\&]+)
Description
The sip/sips syntax is from http://www.ietf.org/rfc/rfc3261.txt?number=3261, seems the pattern works fine, but I worry about the performance
Matches
sip:[email protected] | sip:alice:[email protected];transport=tcp | sips:[email protected]?subject=project%20x&priority=urgent | sip:+1-212-555-1212:[email protected];user=phone | sips:[email protected] | sip:[email protected] | sip:atlanta.com;method=REGISTER?to=alice%40atlanta.com | sip:alice;[email protected]
Non-Matches
[email protected] | alice:[email protected];transport=tcp | [email protected]?subject=project%20x&priority=urgent | +1-212-555-1212:[email protected];user=phone | [email protected] | [email protected] | atlanta.com;method=REGISTER?to=alice%40atlanta.com | alice;[email protected]
Author Rating: Not yet rated. bacon
   Displaying page 1 of 1 pages; Items 1 to 1

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