Skip to content

Commit

Permalink
add javadocs
Browse files Browse the repository at this point in the history
  • Loading branch information
Knerio committed May 28, 2024
1 parent d239e1c commit 159202c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/de/derioo/RegexUtility.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@

import java.util.regex.Pattern;

/**
* Some (maybe) useful regexes
*/
public class RegexUtility {

/**
* Simple regex for a IPV4 Adress
* for example '127.0.0.1'
*/
public static final Pattern IPV4_ADDRESS_PATTERN = Pattern.compile("^(?:(?:25[0-5]|2[0-4]\\d|1?\\d{1,2})(?:\\.(?!$)|$)){4}$");

}

0 comments on commit 159202c

Please sign in to comment.