We can do it with a similar expression with the example on this post.

/(w+)/g

We have said that w expression means any letter, but you should know that Turkish characters are exceptions to this expression. If we are working with a Turkish content, the statement we need to make should be as follows;

/([a-zA-ZΓ‡ΕžΔžΓœΓ–Δ°Γ§ΕŸΔŸΓΌΓΆΔ±]+)/g

With this expression, we can also catch Turkish words.

As another example, let’s try to take just a desired word from the content.

/my name is (w+)/gi

Hello my name is Baransel!