Hello!
I feel like I'm reviving an old thread here...
I'm trying to match a string of text in a named wildcard, but the pattern that this text can appear means I must use the named capturing group more than once ie:
match="^ * (Her|His|Its) skin (?J)(?P<strength>(has been hardened to a rock-like form|has been hardened with numerous layers of a mineral-like substance)), although (.*).$|^ * (Her|His|Its) (?P<strength>(has tiny threads of metal running all over it)), although (.*).$"
I've entered the (?J) as mentioned in a previous thread which fixed the Error "Failed: two named subpatterns have the same name at offset..." error but it still seems to mess up when it triggers.
[string "Plugin"]:2592: bad argument #3 to 'ArraySet' (string expected, got nil)
stack traceback:
[C]: in function 'ArraySet'
[string "Plugin"]:2592: in function <[string "Plugin"]:2555>
Using Mushclient Version 4.94
-- This is what i'm trying to capture --
* His has tiny threads of metal running all over it, although the stomach seems not to be covered.
or
* Tiny threads of metal run criss-cross all over your skin, although the head seems not to be covered.
I feel like I'm reviving an old thread here...
I'm trying to match a string of text in a named wildcard, but the pattern that this text can appear means I must use the named capturing group more than once ie:
match="^ * (Her|His|Its) skin (?J)(?P<strength>(has been hardened to a rock-like form|has been hardened with numerous layers of a mineral-like substance)), although (.*).$|^ * (Her|His|Its) (?P<strength>(has tiny threads of metal running all over it)), although (.*).$"
I've entered the (?J) as mentioned in a previous thread which fixed the Error "Failed: two named subpatterns have the same name at offset..." error but it still seems to mess up when it triggers.
[string "Plugin"]:2592: bad argument #3 to 'ArraySet' (string expected, got nil)
stack traceback:
[C]: in function 'ArraySet'
[string "Plugin"]:2592: in function <[string "Plugin"]:2555>
Using Mushclient Version 4.94
-- This is what i'm trying to capture --
* His has tiny threads of metal running all over it, although the stomach seems not to be covered.
or
* Tiny threads of metal run criss-cross all over your skin, although the head seems not to be covered.