Matching Tagged Data with PHP Regular Expressions

Posted on
6,444 Points
1 Endorsement
Last Modified:
Experience Level: Beginner
Terry Woods
Bridging the gap, in a way you can understand, between what you want and tech that can achieve it. Websites, web based software, email...
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will work in other browsers.

Video Steps

1. Important note about parsing tagged data

2. Show how to find an element on an HTML page using Firefox developer tools

3. Show how to capture the tagged data using the PHP function preg_match

4. Show how to separate the tags from the enclosed data

5. Show how to use the PHP preg_replace function to replace a value with a new value

Author:Terry Woods

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Join & Write a Comment

This article discusses how to implement server side field validation and display customized error messages to the client.
The title says it all. Writing any type of PHP Application or API code that provides high throughput, while under a heavy load, seems to be an arcane art form (Black Magic). This article aims to provide some general guidelines for producing this typ…

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month