I have two preg_match search patterns:
Is there a way to merge them?Code:'#{{Rarevalue\|(.*?)}}#s' '#{{Thronevalue\|(.*?)}}#s'
I have two preg_match search patterns:
Is there a way to merge them?Code:'#{{Rarevalue\|(.*?)}}#s' '#{{Thronevalue\|(.*?)}}#s'
Chippiewill.
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.
Want to hide these adverts? Register an account for free!