Wildcard Limit
Posted: Sat Jan 25, 2014 6:56 am
I noticed that there seems to be a limit to how many wildcards you can parse from the matches table. So far, the limit I have found is 33. I have a unique situation where I have set it up so my MUD is sending the player information via a large one line array (Example below) and I need to do something with the gui elements in my plugin for each and every segment of it. Is there a better way to parse this? Is there some feature I could use to simplify this? Keep in mind that some things shown may sometimes be numbers or words and they flip flop back n forth, but the place in the array remains constant.
Here is an example of what I am matching:
Here is an example of the regular expression trigger I am using to match it:
If I cut it down to 33 wildcards it works, anything higher and it still matches but can no longer parse the wildcards. I would appreciate any ideas or suggestions you folks have in mind.
Here is an example of what I am matching:
Code: Select all
%%%CG,2034,0,0,0,0,0,0,0,6,8,0,0,0,3,1,random,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,15,Rook Parlour,55.7,4250,0,%SKStealth: 345.065 (82910 sec) 2.5%SKDodge: 1173.0 (45510 sec) 0.343CG%%%
Code: Select all
^\%\%\%CG\,(.*?)\,(.*?)\,(.*?)\,(.*?)\,(.*?)\,(.*?)\,(.*?)\,(.*?)\,(.*?)\,(.*?)\,(.*?)\,(.*?)\,(.*?)\,(.*?)\,(.*?)\,(.*?)\,(.*?)\,(.*?)\,(.*?)\,(.*?)\,(.*?)\,(.*?)\,(.*?)\,(.*?)\,(.*?)\,(.*?)\,(.*?)\,(.*?)\,(.*?)\,(.*?)\,(.*?)\,(.*?)\,(.*?)\,(.*?)\,(.*?)\,(.*?)\,(.*?)\,(.*?)\,(.*?)\,(.*?)\,(.*?)\,(.*?)CG\%\%\%$