Jump to content

Search string for a tag.. Is it possible?


zrweber

Recommended Posts

You need something called Regular Expressions, which you give it a Pattern to search your text for, and a replacement string, and it does the work. In PHP, you use preg_replace($Pattern, $Replacement, $String) to do that. Here's some links to get you started

 

The PHP documentation for Preg Replace

http://php.net/manual/en/function.preg-replace.php

 

A website to help teach Regular Expressions

http://www.regular-expressions.info/

 

Another good tutorial to get you started

http://www.phpfreaks.com/tutorial/regular-expressions-part1---basic-syntax

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.