I would use IPAddress.TryParse
static method instead.
IPAddress ip;
bool b = IPAddress.TryParse("1234.12.12.12",out ip);
More Related Contents:
- RegEx to remove single quote, parentheses or square bracket from both beginning and end of a string [closed]
- Regex for specific html tag in C# [duplicate]
- How do I match an entire string with a regex?
- How to match hyphens with Regular Expression?
- Regex Email validation
- How do I replace multiple spaces with a single space in C#?
- Regular expression to remove HTML tags
- Replace only some groups with Regex
- What’s the difference between “groups” and “captures” in .NET regular expressions?
- Best Regular Expression for Email Validation in C#
- Number of occurrences of a character in a string [duplicate]
- Pad left with zeroes
- Multiline regular expression in C# [duplicate]
- Regex escape with \ or \\?
- Negating specific characters in regex
- Regex split string but keep separators
- RegEx – reusing subexpressions
- Case insensitive Regex without using RegexOptions enumeration
- Ignoring white space for a Regex match
- Validating file types by regular expression
- How to make a regex match case insensitive?
- How to remove empty lines from a formatted string
- Get values between curly braces c#
- Regular expression where part of string must be number between 0-100
- C# Regex to match the word with dot
- C# Regex Issue “unrecognized escape sequence”
- regex match keywords that are not in quotes
- Regex for extracting certain part of a String
- How to replace the text between two characters in c#
- C# Regex, Unrecognized escape sequence