Regex & Text Parser Help / Alternative?
Hi All! Life recently got in the way for far too long and I'm having a moment where I can't seem to figure out how to parse text (output from perplexity) and reformat it for the body of an email. Scenario: User has spur of the moment gift idea for someone for the holidays, sends a slack message "ie: can you recommend 5 top rated pinot noirs 50 dollars or less to give as a housewarming gift? Today?" That is sent to perplexity (given they added the new shop feature), perplexity output is then posted - (long string raw text) and from here I am stuck if I use a text parser (i've worked with 6 different regex's with the help of Chat GPT), or a chat GPT assistant, or reformat the text somehow within the gmail module itself? See attached output in screenshot. NO matter what, I cannot get the body of the email to be formatted similarly to perplexity's output. It's just one large paragraph. The latest regex I found is: ## \d+\.\s\*\*(.+?)\*\*\n-(.+?)\n- \*\*Link:\*\* \[(.+?)\]\((.+?)\) and i checked this with the string on pythex.org Any ideas? LMK if I need to clarify anything!