Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 3 of 3
  1. #1
    Join Date
    May 2007
    Posts
    10,481
    Tokens
    3,140

    Latest Awards:

    Default Regular expressions

    I have two preg_match search patterns:

    Code:
    '#{{Rarevalue\|(.*?)}}#s'
    '#{{Thronevalue\|(.*?)}}#s'
    Is there a way to merge them?
    Chippiewill.


  2. #2
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    It all depends on what you're trying to match.. give us an example input and what you expect to do and I'll help you. Are you just wanting to match both of those in an input but in one preg_match?

  3. #3
    Join Date
    May 2007
    Posts
    10,481
    Tokens
    3,140

    Latest Awards:

    Default

    Quote Originally Posted by Dentafrice View Post
    It all depends on what you're trying to match.. give us an example input and what you expect to do and I'll help you. Are you just wanting to match both of those in an input but in one preg_match?
    There'll be a word in the middle of "{{Rarevalue|" and "}}" that I need to get out, currently I use two different preg match alls and merging the subsequent arrays causes a lot of messy code.
    Chippiewill.


Posting Permissions

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