Re: Preg_match----------help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello, 

This regular expresion should help you on your way 

$regex = "/<[A-z_\-]+>?/";

HTH 
Jarratt

On Sat, 22 Jan 2005 17:03:30 +0600, Chandana Bandara
<chandana@xxxxxxxxxxxx> wrote:
> hi ,
> 
> using preg_match , how can i match "<", "_" , ">" " - " such special characters in a sentence  ???
> 
> Eg:
> 
> Strings are like this,
> 
> 1.Ahgrwgsgd dfjb yuhh dfh <ABCD AFGHFDc GHJGKJ ------------------ here i want to match  <ABCD
> 
> 2.AFRYRGH  vhGHJGB <ASD_ASD_DER> GHJGJ  kjHGKJGK ---------- here i want to match  <ASD_ASD_DER>
> 
> 3.GHHTGH GHJK <BO-CA JKJ JLKL ---------------here i want to match  <BO-CA
> 
> what is the most suitable way to match those data ? plz guide me ,
> 
> Thanx in advance,
> chandana
> 
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux