regex and emoji
Posted: Sat Jun 22, 2019 6:42 pm
Hello to all! I have a problem with the code.
Replace this smiles to emoji from here: https://getemoji.com like this:
(I can't insert normal code due to forum problems)
Result:
Why are emoji in string #1 lost?
Code: Select all
If CreateRegularExpression(0, "(.+?)\|(.+?)")
If ExamineRegularExpression(0, " :evil: | :twisted: ")
While NextRegularExpressionMatch(0)
RegularExpressionGroup(0, 1)
If OpenFile(0, "test.txt")
FileSeek(0, Lof(0))
WriteStringN(0, RegularExpressionGroup(0, 1)+RegularExpressionGroup(0, 1))
WriteStringN(0, " :evil: :twisted: ")
CloseFile(0)
EndIf
Wend
EndIf
Else
Debug RegularExpressionError()
EndIf
(I can't insert normal code due to forum problems)
Result:
Why are emoji in string #1 lost?