I want a trigger that will match on a certain line. Unfortunately, this line could be absolutely anything, there is no way to predict what form it will take. Fortunately, it is always immediately preceded and followed by ------------------------------------
I want a trigger which will look for the two ----------------------------- then send the middle line - the random one - to the script for parsing. After much trial and error, I have a trigger which looks like this:
which works, and sends the line to wildcards[0]. The trouble is, I haven't got the faintest idea why it works, especially as it doesn't work if you take the (?U) out. Can someone help me make a more sensible trigger, and explain to me how it works please?
I want a trigger which will look for the two ----------------------------- then send the middle line - the random one - to the script for parsing. After much trial and error, I have a trigger which looks like this:
^---------------------------------------------------------------------------$\n^ ((.)+)(?U)$\n^---------------------------------------------------------------------------$which works, and sends the line to wildcards[0]. The trouble is, I haven't got the faintest idea why it works, especially as it doesn't work if you take the (?U) out. Can someone help me make a more sensible trigger, and explain to me how it works please?