What regex would I need to get <t:1583277337:R> to then replace it so it display the proper information (in this case: 3 Years ago)
Why?
I'm trying to use it on Discord where Discord automatically converts <t:1583277337:R> to the corresponding data, but the API retrieved data (below) doesnt automatically convert on Discord Embeds
Data
"bio": "๐๐๐ ๐๐๐๐๐๐๐๐ ๐๐๐๐ ๐๐๐๐๐๐๐ ๐๐ ๐๐๐, ๐๐๐ ๐๐๐ ๐๐๐๐๐๐๐๐ ๐๐๐๐๐๐๐...\n\n\n<t:1583277337:R> <3"
I won't give you the full solution, but here is the logic:
<t:, in sequence:R>You can use this regex in String#replace. The replace method can accept a callback as its second argument for a more powerful parsing of a match. In this case, you can process the string in the replace callback to whatever text you need