Regex Example: IP Validator

Problem: Check wheather an ip is a valid ip or not IP address has a predefined  form "A.B.C.D", where the value of A, B, C, and D may range from 0 to 255. Solution: Lets find the patern for A and same will be applied to other three as they follow same pattern. Lets assume A... Continue Reading →


Regex Example: Username Checker

Problem: Check following condition on a username Can contain alphanumeric number and underscore Must not start with a digit Can have length from 8 to 30 characters Solution: Lets generate pattern one by one. Start by checking first character of username which should not be a digit so we have to use range to check... Continue Reading →

Create a website or blog at

Up ↑