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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find merge spec. number and ip address
Expression
For IP-Address:(?<First>2[0-4]\d|25[0-5]|[01]?\d\d?)\.(?<Second>2[0-4]\d|25[0-5]|[01]?\d\d?)\.(?<Third>2[0-4]\d|25[0-5]|[01]?\d\d?)\.(?<Fourth>2[0-4]\d|25[0-5]|[01]?\d\d?) For Number: (\+|\*{0,2})?(\d*)
Description
i can use one regex one times, e.g. i can use regex: ip-address separatly. I can use also regex for NUMBER separatly. But how can i merge this 2 regex to one regex, that i can use my expression for numbers or for ip addresses together.
Matches
192.168.100.1 or +1124
Non-Matches
192. or 1s
Author Rating: Not yet rated. abdullah
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