Half a croissant, on a plate, with a sign in front of it saying '50c'
h a l f b a k e r y
Naturally, seismology provides the answer.

idea: add, search, annotate, link, view, overview, recent, by name, random

meta: news, help, about, links, report a problem

account: browse anonymously, or get an account and write.

user:
pass:
register,


                         

chatbot2regex

discuss what you want and get the regex
  (+1, -2)
(+1, -2)
  [vote for,
against]

Hey chatreg?

- Hi Pashute! should I call you Moshe?

How did you know my name?

- You told me last time. Anyways, what do you wish to accomplish now?

I need a regular expression that finds an email and then replaces the title the phrase before it to email to the guy's name and then a colon.

- you need a regex that FINDS AN EMAIL and then you want to do something with that. Let's start with finding an email. Do you mean finds an email address in the text? Or did you mean searches in your mailbox and finds a...

No. I mean finds an email address.

- OK so you need to know what the regex pattern for finding the email address is. Right?

No. I know what that is.

- OK, just being clear here. So you want to search for any email address in the text right?

right.

- OK and then you said you want to change the title the phrase before email. What did you mean by that? Are you explaining that when you say title you mean the phase before the email.

Yes that's what I meant.

- So what is this "Title" you want to change. Is it always there? Could you read out a few of the titles here on sample text?

It says email with a colon.

- I see. But there are some emails where it says just Mail and some with random words. It seems like it's just part of the sentence. (You know that I don't understand enough to read, so I cannot tell if that is so myself. You will have to help me out here.

What are you asking?

- I'm asking what to do in the case where the email doesn't have a "title"?

No that's a different part of the letter. Only if there's the word mail or email.

- OK. So we find the email address and find the title before it which is the word "mail" or the word "email" followed by a colon. right? Here I marked them in green and purple. See.

Looks good. Wait no, if there's a colon the words before it are the title.

- Ah, I see now. That might get complicated, so let's change for now all the ones that say mail or email. Then we'll continue to fix the rest of the text, ok?

Yes. OK now take the addressee and put it there in the title.

- You said I should change the title to email to and then the addressee right? Something like this, please take a look.

That's exactly what I need!

- OK so let me explain the regex and try out a few examples.

Great!! You made my day! Thank you.

YOU ARE WELCOME. THIS IS AN AUTOMATIC CANNED REPLY MESSAGE . I AM PROGRAMMED TO BE AT YOUR SERVICE.

pashute, Jan 21 2022

a log of chatGPT doing exactly this. but with mistakes. https://docs.google...i8/edit?usp=sharing
[pashute, Apr 25 2023]

[link]






       ok chatreg, take the text from the clipboard. You see that double closing bracket in front of the curly bracket. That's a mistake. But before I erase them I want to move the cuneiform sign in front of it out of the parenthesis. Do you understand what I mean?   

       - Hi. No. I don't, but we'll work on it, and slowly but surely we'll get the job done... So here's the ext. And here are the double closing brackets. Right?   

       Yup and ....   

       OK so what's a cuneiform sign. show me a few.   

       Version 2: OK Just a sec I'm looking up what a cuneiform sign is. OK I think I understand. It's these thingy's right?   

       But that's already stage II.
pashute, Jan 21 2022
  

       I'm not familiar with Chatbots OR regex stuff, but it looks like you need to learn how to push "Control" & "F". Trying to get something messy like your example to work will always run into unique situations you didn't program for.
neutrinos_shadow, Jan 21 2022
  

       AS A
bot
I WANT TO
see some example inputs and outputs, including examples of "failure" cases, to indicate what not to do
SO THAT
I can reverse-engineer the simplest possible regex, through an iterative process in which a human user adds examples, or amends earlier examples.
pertinax, Jan 21 2022
  

       And how does regex make you feel?
RayfordSteele, Jan 21 2022
  

       Imagine my surprise when I read the title of this idea as Shabbat regret.
xandram, Jan 21 2022
  

       Is there a big enough data set of matched explanations to regex code for chatreg's logical subconscious?
wjt, Jan 22 2022
  

       I'm writing the stage leading to this in a separate idea, so that we get there.
pashute, Jan 25 2022
  

       2023. Chat GPT: See link   

       It does most of the job, but annoyingly always sticks in something that humans have to complete to get it right.   

       The way to avoid this is once you understand what it did, to repeat the process slowly with small requirements till you get each section of the regex completely correct.
pashute, Apr 25 2023
  

       It doesn't seem to me that this is a novel idea, so much as development of an AI chatbot which people are already working on.
Loris, Apr 25 2023
  

       It was a novel idea in 2020 with . And then Chat GPT came along and tries to do it with force (but without asking me in an interactive way.   

       Which leads me to my now-to-come hbea Interactivate.ai
pashute, Apr 26 2023
  

       Well, even in 2020 it was something people wanted.
I see now that this idea dates from early 2022, so before AI exploded in the public consciousness, but even so.
Loris, Apr 26 2023
  
      
[annotate]
  


 

back: main index

business  computer  culture  fashion  food  halfbakery  home  other  product  public  science  sport  vehicle