![]() |
|
|
|
| ||||||
|
Welcome to the The ProgrammersTalk Community forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
![]() |
![]() | | LinkBack | Thread Tools | Display Modes | ![]() |
| The Following User Says Thank You to siLenTz For This Useful Post: | ||
HelloWorld (06-28-2007) | ||
| |
| ||||
| Nice. I should point out that Quote:
|
| ||||
| Bother? It's no bother. They are not the same. Perhaps you would want to take a look at them and write this article using the Perl Reg Ex ... It usually helps me to learn something to have a goal in mind instead of just mindlessly reading. Just a thought and good point - they're not the same. |
| ||||
| I do little research on PHP expression and Perl expression. There were some difference but also some are similar. For example: in PHP regex it looks like this "a+$" but in Perl it looks like this "/a+$/". In Perl, they allow you with more option like "/a+$/i" mean that it will insensively match the string.. Perl regular expressions are more complicate than PHP but it is more powerful than PHP because they have additional function. As I know, Perl regular expressions also have condition in it. However, my tutorial is about PHP regular expression and it also cover the basic regular expressions. I believe that if know PHP regular expressions you can learn Perl regular expression easily because they have the same concept. From siLenTz Same but different.... |
| ||||
| Quote:
or you want to check if the username provides you the right email. You can check if the visa card number is in correct format. And there are more other advantages. In part 3 I will show you some useful Regular Expressions that you will use it in daily application. From siLenTz Wait and see... Last edited by siLenTz : 06-28-2007 at 07:49 AM. |
| ||||
| In second part, I created a very simple program that check the validate real name of users. If they insert the validate formate of real name then we will add their name into database. If it is invalidate, we don't allow it to pass through the database. In this program, I am using regular expression. PHP Code: it in the hard way. Here is raw php without using regular expression and do exactly the same like the code above. PHP Code: first program, you should read the first and second part. Here is the link to second part: Regular Expressions In PHP (Part 2) From siLenTz Which one you prefer...?? |
![]() |
| Thread Tools | |
| Display Modes | |
| |