...

View Full Version : preg_replace



mrjameer
06-07-2007, 09:25 AM
hi

i have one mysql table which has 2 fields

1.id 2.message

values

1 r%#dfont style="font-size: 8pt;"#i#j# WELCOME r%#d/fontb*%d

i want to fetch this data and print it as WELCOME

i want to replace r%#d with '<' and b*%d with '>' and ignore this #i#j#.
i have used preg_replace but nothing is displaying.any of your help will be appreciated.

thanks
mrjameer

_Aerospace_Eng_
06-07-2007, 09:27 AM
Why are you getting input like that in the first place?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum