Hello.
I'm trying to use some regex on mushclient with lua.
Everything seems to be working fine except the backslash character which I'm having issues about.
The manual says one of the features of backslash character is to remove any special meaning which the following character might have.
For example, if I write \* it means litteral * not an repeatition operator.
But the pcre library in mushclient doesn't seem to be working in this way.
If I write $rex.new("\*") in mushclient, I get a nothing to repeat error which might be an indication that mushclient is ignoring backslash in this context.
If I write rex.new("\[.*") I get an error about unterminated character class which tells me that mushclient just ignored \ and parsed [ as a metacharacter.
I'm currently using mushclient 5.06.
Any help on resolving this issue would be greatly appreciated.
I'm trying to use some regex on mushclient with lua.
Everything seems to be working fine except the backslash character which I'm having issues about.
The manual says one of the features of backslash character is to remove any special meaning which the following character might have.
For example, if I write \* it means litteral * not an repeatition operator.
But the pcre library in mushclient doesn't seem to be working in this way.
If I write $rex.new("\*") in mushclient, I get a nothing to repeat error which might be an indication that mushclient is ignoring backslash in this context.
If I write rex.new("\[.*") I get an error about unterminated character class which tells me that mushclient just ignored \ and parsed [ as a metacharacter.
I'm currently using mushclient 5.06.
Any help on resolving this issue would be greatly appreciated.