Skip to content

REGEX

Simple PHP Form Error Class, Validate Errors Class, OOP

Share Button

<?php      /**   Simple Error Class * *   – Define Error Messages, Regular Expressions *   – Log Errors to Error Array *   – Sanitize Input *   – Print/Display Errors […]

Share Button

REGEX, Extract IP address IPv4

Share Button

Matches IPv4 IP addresses   Will display only IP addresses from the file.txt ! grep -o [0-9][0-9]*[.][0-9][0-9]*[.][0-9][0-9]*[.][0-9][0-9]* file.txt grep -o ‘[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*’ file.txt grep -o ‘[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}’ file.txt   Some Extra…. Will […]

Share Button