secretdatingsite com - Validating a phone number
- Mike It would be very interesting to get more of these lines. You will need to (a) handle UTF-8 (or whatever) and (b) use much more advanced character set testing. However, my point was that regular expressions are very useful and you will probably find more than one use for them once you *have* linked it into your project. But there is a big problem, with phone numbers, in France we use 10 numbers, when I look up your code the phone number buffer can have 11 characters. Take a look at Mastering Regular Expressions by Jeffrey E. Some may say the overhead of linking in the library makes it overkill, but regular expressions are not only elegant, they are a lot of fun once you get used to them. If not, its the biggest bullshit ever to link to library to parse a string. It'll run faster and be less likely to have buffer overruns, etc.
Also, a nice C library called Regex kicks butt for these types of things. -Matt If the program is already linking it maybe okay (but I don´t believe it).
Now, if your point has to do with speed or benchmarking, I would gladly take that challenge.
(note: The MSDN page on Regular Expression Language is always a good reference to check on when coming up with regex patterns in .
There are many different ways a user might input a phone number.
-Matt ------------------------------------------ The 3 great virtues of a programmer: Laziness, Impatience, and Hubris.
--Larry Wall Then we can compare which is the better solution based on three things: A fourth thing would be how much work is involved when the input requirements change.You write a parser in straight C, and I'll write one using a regular expression engine such as Regex .Then we can compare which is the better solution based on three things: 1) the time it takes to create the parser, 2) efficiency, and 3) raw speed. Text = "Not Valid phone number" End If End Sub System Tray - Notification Area - Visual Basic . NETDisplaying Data in a Chart / Graph - Visual Basic . NETExport Data Grid View Data To Excel - Visual Basic . NETPlacing Controls on Form Input Box in Visual Basic .The problem with validating user input on the client side is that there is no security.Tags: Adult Dating, affair dating, sex dating