Hello,
I've got a few questions, on how to do something.
First, Is there some quick tutorial on regexp?
I know how it works a bit, but I'm not the best with it.
Also, if I do something like: ^hello my name is *.$, the $ is the end of the line. how do I access what was in the * position with a php script?
I'm also working on two things.
First, I need to be able to parse a who list, which is on multiple lines. is there a way that this can be done, efficiently? I see the player name, and location. I want to trigger on the location, but each player is on a separate line.
Second, and this is two-part, I've got a line that has 5 parts to it.
Now, I want to start on the right, and act on each one. so I'll have like:
The meter reads: * * * * and *
is there an efficient way to do this? I need to start on the right, and do a test based on that, act on it, then obtain the line again until a trigger is matched.
So, I'll work backwards.
second, is there a way to make the client pause?
With php, when I use a sleep function, the window (program) freezes, and keeps showing a "server busy" message.
I think that's about it. I've got a list of the world functions, I'm just stuck on how to parse multiple lines, and do the 5 part line.
Thanks in advance for all the help,
I've got a few questions, on how to do something.
First, Is there some quick tutorial on regexp?
I know how it works a bit, but I'm not the best with it.
Also, if I do something like: ^hello my name is *.$, the $ is the end of the line. how do I access what was in the * position with a php script?
I'm also working on two things.
First, I need to be able to parse a who list, which is on multiple lines. is there a way that this can be done, efficiently? I see the player name, and location. I want to trigger on the location, but each player is on a separate line.
Second, and this is two-part, I've got a line that has 5 parts to it.
Now, I want to start on the right, and act on each one. so I'll have like:
The meter reads: * * * * and *
is there an efficient way to do this? I need to start on the right, and do a test based on that, act on it, then obtain the line again until a trigger is matched.
So, I'll work backwards.
second, is there a way to make the client pause?
With php, when I use a sleep function, the window (program) freezes, and keeps showing a "server busy" message.
I think that's about it. I've got a list of the world functions, I'm just stuck on how to parse multiple lines, and do the 5 part line.
Thanks in advance for all the help,