Expression with a minium length must contan numbers
Posted: Sun Apr 10, 2016 5:06 pm
Slowly learning regex by simply doing it.
The code above will search any pattern containing characters or numbers where the combination of therefore, or either numbers or characters have 10 or more literals. That's close to what I want. I need a similar formula but this time
(1) at least one number MUST be contained within the expression to be searched for. Example: 288TVeTU4uQzGBbN_SR1oWPRhQ_7v
Wrong though: qZporGeklnEfoieimnaLhHJtl <-- contains no number(s)
(2) The total amount characters in the entire expression where the range is [a-zA-Z0-9] must have a minimum amount (say 10).
So [COOLCAT].<readtxt>.288TVeTU4uQzGBbN_SR1oWPRhQ_7v.HOMEY.720p.rar qualifies as it has a substring meeting this requirement.
Cheers.
- Code: Select all
[a-zA-Z0-9]{10,}
The code above will search any pattern containing characters or numbers where the combination of therefore, or either numbers or characters have 10 or more literals. That's close to what I want. I need a similar formula but this time
(1) at least one number MUST be contained within the expression to be searched for. Example: 288TVeTU4uQzGBbN_SR1oWPRhQ_7v
Wrong though: qZporGeklnEfoieimnaLhHJtl <-- contains no number(s)
(2) The total amount characters in the entire expression where the range is [a-zA-Z0-9] must have a minimum amount (say 10).
So [COOLCAT].<readtxt>.288TVeTU4uQzGBbN_SR1oWPRhQ_7v.HOMEY.720p.rar qualifies as it has a substring meeting this requirement.
Cheers.