Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: preg_replace

  1. #1
    Regular Coder
    Join Date
    Aug 2006
    Posts
    133
    Thanks
    0
    Thanked 0 Times in 0 Posts

    preg_replace

    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

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Why are you getting input like that in the first place?
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •