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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find 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
Source
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

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