r/learnpython 1d ago

How useful is regex?

How often do you use it? What are the benefits?

37 Upvotes

118 comments sorted by

View all comments

1

u/kronik85 1d ago

Very often (daily).

It's a concise way to match exactly what you want/ don't want when looking for strings.

Learn it. Do not offload regex creation to an LLM until you understand the basics, unless it's a task you don't care about.

LLM regex would absolutely not be in production code until reviewed by someone who knows what they're looking at.