rockinaway Posted February 20, 2007 Share Posted February 20, 2007 When using preg_match for the pattern you have to place wierd characters, any help on what you place and when? Quote Link to comment Share on other sites More sharing options...
effigy Posted February 20, 2007 Share Posted February 20, 2007 Until you can be more specific, look at the Resources sticky. Quote Link to comment Share on other sites More sharing options...
rockinaway Posted February 20, 2007 Author Share Posted February 20, 2007 I just want to know how you figure out which characters you place Quote Link to comment Share on other sites More sharing options...
effigy Posted February 20, 2007 Share Posted February 20, 2007 Go through the tutorial in the link I posted; it will help you get started. Quote Link to comment Share on other sites More sharing options...
tryingtolearn Posted February 20, 2007 Share Posted February 20, 2007 rockinaway, I just went through the same confusion yesterday. (Im still confused but until I do it over and over - well....) This link http://www.phpfreaks.com/tutorials/52/0.php posted in the resources sticky helped me alot (Along with effigy many thanks). I read the first page over and over it it breaks it down pretty easy to understand. The best line is on the first page that says The best way to understand regex is to say it to yourself the way I have written it for you, in a sentence. "match anything with any text ending with any extension", and so forth. I blew right over it the first time through because I didnt understand. But once I read what each symbol meant then it became a little less cloudy. I would start on page 1 Read it over and over learning the meanings of each symbol and then do like the quote says. Then write some things out that you would want to do and come up with the expression to go along with it. I found this to test and it helped alot also http://regexlib.com/RETester.aspx Just an idea, but that seemed to work for me. Like I said, Im still a little confused but not as much. Good luck. Quote Link to comment Share on other sites More sharing options...
rockinaway Posted February 21, 2007 Author Share Posted February 21, 2007 Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.