Last active
March 3, 2026 10:32
-
-
Save ptsgrn/f1a9f3fa7526b5a10441e22663621b01 to your computer and use it in GitHub Desktop.
Grel function for cleaning HTML text from Thai bank's emails
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| value.replace(/<[^>]*>/,"").replace("-->", "").replace(" ", " ").replace(/[\t ]+/," ").replace(/(\r\n\s?|\n\s?)+/, "\n").replace(/\n\s/,"\n").replace(/\n([\d\.\,K]+)/, " : $1") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment