Web Design Tutorials and Articles: PHP Regular Expressions

By Chrysanthus - About Me - E-mail this page - Add to My Favorites - Add to Blog List - See other blogs in Computers & Internet

Wednesday, April 8, 2009

PHP Regular Expressions

PHP Regular Expressions – Part I Introduction Consider the string, “This is a man”. Assume that you do not know the content of the string; the string might have been typed by the user and the PHP code has assigned it to a variable. You may have the following two questions: 1) Does the sting have the word, “man”? 2) If the string has the word, “man”, can you change it to “woman”. There are many other questions that are similar (and rather complex) to the above two questions. Handling this in code... Sign in to see full entry.

Previous: Strings and the JavaScript Eval Function - New Entries - Next: Regular Expression Patterns in PHP

Headlines (What is this?)