Jump to content

mapunk

New Members
  • Posts

    2
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

mapunk's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks a lot, I'll check it out and let you know how it goes  :)
  2. I've tried working on this for a pretty long time, but I'm new to regular exprsesions so I really have no idea how to do this. Let's say I have a string like the one below.  I have an array of the usernames...Let's call it $user_array.  How would I go about searching for, and replacing the string under each user with a string called $replacement?  Or better yet, how would I just capture the text for each user using preg_match?  It needs to be able to capture multiple lines and any character thrown it's way.  I don't need the whole logic behind it, just the preg_replace/preg_match statement.  Thanks guys [quote] [username=User1] Some notes on this user go here [username=User2] More notes on user two go here [username=User3] These are notes that I have kept for this particular user [/quote]
×
×
  • 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.