Quote:
I want regex or code in VB old it's urgent.
I want to win Lotto, it's urgent, can you help ?
Quote:
I tried something but not works
I don't see what is wrong in your try. (try to show what you have done)
Try more, or try something else.
Quote:
It should start with 7,8 or 9 and it should no allow numbers like all [7|8|9] , & like 4 or 5 or 6 digits consecutive [7|8|9] & rest 6 or 5 or 4 digits [7|8|9]
Do you have knowledge that those numbers do not exist ?
or they are just unlikely? because every single number is as unlikely as any other one.
-----
Quote:
It should start with 7,8 or 9 and it should no allow numbers like all [7|8|9] , & like 4 or 5 or 6 digits consecutive [7|8|9] & rest 6 or 5 or 4 digits [7|8|9]
This is not the usage of RegEx, regex is for pattern matching. Checking that the first digit is 7, 8 or 9 is ok, but it is not for the rejecting of the other sequence numbers.
A little regEx "[789]\d+" to get you started.
Just a few interesting links to help building and debugging RegEx.
Here is a link to RegEx documentation:
perlre - perldoc.perl.org[
^]
Here is links to tools to help build RegEx and debug them:
.NET Regex Tester - Regex Storm[
^]
Expresso Regular Expression Tool[
^]
RegExr: Learn, Build, & Test RegEx[
^]
This one show you the RegEx as a nice graph which is really helpful to understand what is doing a RegEx:
Debuggex: Online visual regex tester. JavaScript, Python, and PCRE.[
^]