All Questions
Tagged with ip-address regex
98
questions
0
votes
1
answer
64
views
regex validation for multiple input formats from a single input
I have a situation where I should check for 2 different cases from one input. There is a validation function which validates for domain names and ipv4 and ipv6 address. Since I am accepting the ...
1
vote
2
answers
1k
views
Regex to match IPv4 Addresses in log files
I need to be able to find and replace sensitive data like IP addresses in log files so that I can send them to a vendor for technical support.
The trouble is that the log files also contain version ...
-1
votes
1
answer
55
views
Import IP addresses into firewall configuration (Comodo) using regular expression
I'm trying to import a list of IP addresses (IPv4) into my firewall configuration, the lists are known VPN servers and are saved in a .txt file, one IP address per line with no spaces or formatting ...
-3
votes
2
answers
49
views
RegEx IP Adress bug [closed]
in my react app I have a Input that validates if the string is an IPV4 Address or not.
This is my RegEx:
^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4]...
0
votes
1
answer
319
views
Regex PCRE2 verify range of ip address
Currently I'm working on a regular expression wrote in PCRE2 to check a range of IP address
^(10\.).+|(172\.16).+|(192\.168).+
I need the regular expression to check also if in the string I can find ...
2
votes
1
answer
1k
views
Angular/PrimeNG - regex keyFilter with additional restriction of input values
I want to create a keyFilter to verify an IP address using IP-regex as follows:
<input pInputText type="text" [(ngModel)]="value1" [pKeyFilter]= "IPAddressKeyFilter" [...
0
votes
1
answer
229
views
IP Address regex with netmasks
the format goal:
require a.b.c.d/x where >>
a is 1-3 digit num btw 1-223
b, c, and d are 1-3 digit num btw 0-255 and *required
x is 1 or 2 digit num btw 8-32 and the (/x) group is optional
...
1
vote
1
answer
671
views
(Alternate Solution) Validate IPV4 and IPV6 with wildcard (*) characters using Regex
I want to validate IP Address with wildcard characters (*) using regex.
I came up with the following regex for IPV4 and IPV6 but these don't validate all use cases.
IPV4
^((([0-9]{1,2})|(1[0-9]{2,2})|...
1
vote
5
answers
5k
views
I want a regex support for characters that uses IP Address with Subnet
I have a regex ^[a-zA-Z0-9.*?]+$ that supports IP addresses like 31.202.216.280 how can I modify the given regex in a way where I could support subnets with an IP address like so 31.202.216.280/38
2
votes
2
answers
2k
views
Regex Valid IP adresse with mask
I have an issue with my regex i have this
<asp:TextBox CssClass="form-control" pattern="\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-...
-4
votes
1
answer
73
views
How does match multiple IP Address after comma? [closed]
A IP list for example:
5.2.69.50
5.104.110.89,5.183.209.217
5.199.143.202,18.27.197.252,23.31.59.211,23.114.165.250
23.129.64.137
23.129.64.148,23.129.64.150,23.129.64.157,23.129.64.163
I this case ...
2
votes
2
answers
71
views
Only match IP addresses and not other numbers
I want the following regex code to return an output of IP addresses without returning other number values as IP from the source file.
The Code:
import re
logdata = 146.204.224.152 - feest6811 [21/...
1
vote
1
answer
423
views
multiple matches in regex in hive
When I run
select regexp_extract("hosts: 192.168.1.1 192.168.1.2 host",'((25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(25[0-5]|2[0-4]\\d|[01]?\\d\\d?)',0);
I got 192.168.1.1.
But what i want ...
1
vote
1
answer
216
views
Can the domain part of an email address be an IP addresses?
I'm trying to build a regular expression to detect a valid email. I've gone through some articles here on Stack Overflow. I've also read the section 3.4.1 of RFC 2822, which describes the different ...
1
vote
1
answer
678
views
Extract Specific Text from a Text File Using C#
I want to extract Only IP Addresses from a text file using Regex.
Interface: 192.168.8.100 --- 0x11
Internet Address Physical Address Type
192.168.8.1 a8-7d-12-c6-73-2c dynamic
...