If the_title starts containing the same characters as the_content then

Right now I have a post that the_title and the_content starts with same text: "Hello world, we are WordPress…".

The above is just an example, every post has a different text.

What I want to do is basically, check if post content starts with the same few words as the title.

Then //do this.

else // do this.

I guess I need to use reggex here?

I would probably need to write how much of the first characters should match?

Maybe someone had the same situation could help me out.