I've done this:
Function OnPluginPacketReceived (s)
dim RegExp, Match
Set regEx = new RegExp
regEx.Pattern = "^.+ (?:smiles|laughts)\.$"
regEx.Global = True
regEx.Multiline = True
Match = regEx.Replace(s, "")
OnPluginPacketReceived = Match
end function
To gag lines, but it it doesn't erese whole line it just converts it into blank line. Anyone has an idea how to remove the line completely?
I've tried adding \n, \r and other combinations i could think of in regEx.Pattern in the end but then it didn't match the text at all.
Lisev
Function OnPluginPacketReceived (s)
dim RegExp, Match
Set regEx = new RegExp
regEx.Pattern = "^.+ (?:smiles|laughts)\.$"
regEx.Global = True
regEx.Multiline = True
Match = regEx.Replace(s, "")
OnPluginPacketReceived = Match
end function
To gag lines, but it it doesn't erese whole line it just converts it into blank line. Anyone has an idea how to remove the line completely?
I've tried adding \n, \r and other combinations i could think of in regEx.Pattern in the end but then it didn't match the text at all.
Lisev