Advanced Regex
Budget: ₹1,500 – ₹12,500 INR
I have a relatively advanced regex, that needs to be adjusted.
The following regex matches 10 numbers, where the first 6 matches a valid birthday DDMMYY (e.g. 240465 is 24th of April 1965), and the last 4 digits are random. The regex matches both with or without a hypen. E.g. 240465-1234 and 2404651234 will both be a match.
Here's the regex:
(?:(?:31(?:0[13578]|1[02])|(?:30|29)(?:0[13-9]|1[0-2])|(?:0[1-9]|1[0-9]|2[0-8])(?:0[1-9]|1[0-2]))[0-9]{2}-?[0-9]|290200-?[4-9]|2902(?:(?!00)[02468][048]|[13579][26])-?[0-3])[0-9]{3}|000000-?0000
This regex needs to be adjusted to EXCLUDE matches if the 10 numbers start with a "S" or "s".
I have attached an image that also explains the requirement of the regex.
The following regex matches 10 numbers, where the first 6 matches a valid birthday DDMMYY (e.g. 240465 is 24th of April 1965), and the last 4 digits are random. The regex matches both with or without a hypen. E.g. 240465-1234 and 2404651234 will both be a match.
Here's the regex:
(?:(?:31(?:0[13578]|1[02])|(?:30|29)(?:0[13-9]|1[0-2])|(?:0[1-9]|1[0-9]|2[0-8])(?:0[1-9]|1[0-2]))[0-9]{2}-?[0-9]|290200-?[4-9]|2902(?:(?!00)[02468][048]|[13579][26])-?[0-3])[0-9]{3}|000000-?0000
This regex needs to be adjusted to EXCLUDE matches if the 10 numbers start with a "S" or "s".
I have attached an image that also explains the requirement of the regex.