HabboxWiki needs you!
Are you a Habbo buff? Or maybe a rare trader with a bunch of LTDs? Get involved with HabboxWiki to share your knowledge!
Join our team!
Whether you're raving for rares, excited for events or happy helping, there's something for you! Click here to apply
Need a helping hand?
Check out our guides for all things to help you make friends, make rooms, and make money!


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,107
    Tokens
    2,809

    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
  •