DEV Community

Cover image for Writing Regex without knowing it
Nima Akbarzadeh
Nima Akbarzadeh

Posted on

Writing Regex without knowing it

Regex (Regular Expression) allows you to create patterns that help match, locate, and manage text. It's a powerful way to search and select a specific part of the string.

So you are able to write one line regex and replace several dozen lines of programming codes.

For some people, writing regex is a big pain.
Searching for general and famous regex on StackOverFlow works most of the time, but if you don't know regex at all and you don't have time to learn it fast, there is a good solution for this type of people.

People wish to have a genie, and now we have a nice genie for regex!

Website

I saw Aarya's tweets on Twitter.
He built an app to convert English expressions to RegEx.
The outputs are generated by OpenAI's GPT-3.

GPT-3 (Generative Pre-trained Transformer 3) is an autoregressive language model that uses deep learning to produce human-like text.

Example

You can try it now on autoregex.xyz.

Did you find something strange or funny? Comment them below 👇🏻

Because sometimes the result can be incorrect.

Top comments (0)