ID: 34702 Updated by: [EMAIL PROTECTED] Reported By: ryan_huff at knl dot cc -Status: Open +Status: Bogus Bug Type: Documentation problem Operating System: Irrelevant PHP Version: Irrelevant New Comment:
The regex syntax page provides a clean and easy reference for the preg_* functions regex syntax. Of course you won't be able to (easily) learn Regular Expressions from a simple manual page. You need to buy a book about the topic. This is not an easy subject! Previous Comments: ------------------------------------------------------------------------ [2005-10-01 20:04:49] ryan_huff at knl dot cc Description: ------------ As a suggestion, I would like to see the preg_* areas of the manual re-visited someday. The format character syntax for preg can be extremely complex to someone who is not familiar with such, especially when it comes to the dbl escape for the search/replace of reserved words/characters. Then there is knowing when you need to use the parens, or the brackets ...ect. I feel that the manual barely explains how to use preg, even in alien-speak. Sure, the manual gives the definition and outlines where all the paramiters go but doesn't explian how to use them and more importantly, what conditions have to exist to use them. I think it would go along way to provide some more "basic" example code on the page covering different / common use, that way the reader can break it down in their head and apply it to their situation. Thanks, MsJetEngineError Reproduce code: --------------- http://us3.php.net/manual/en/function.preg-match.php Expected result: ---------------- A more intuitive area of the manual for the preg_* functions Actual result: -------------- A barely understandable area of the manual ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=34702&edit=1