regex101 (@regex101) profile picture

Online regex tester and debugger with real-time match highlighting, detailed explanations, substitutions, unit tests, benchmarking, and code generation. Support

Joined December 2011
Photo by regex101 (@regex101)Photo by regex101 (@regex101)Photo by regex101 (@regex101)Photo by regex101 (@regex101)Photo by regex101 (@regex101)Photo by regex101 (@regex101)Photo by regex101 (@regex101)Photo by regex101 (@regex101)Photo by regex101 (@regex101)Photo by regex101 (@regex101)
Would there be value in a regex railroad diagram?
4
331
Your regex now has a rubber duck that talks back 🦆 regex101’s AI assistant is now live! Your aid when you need to refine patterns, generate test cases, or work with Text Pipelines.
1
1
163
I’ve been following the development of LLMs with a combination of excitement and caution. Some people swear by them, while others want nothing to do with them. I can understand both, and I still find myself somewhere in the middle. Some applications are genuinely useful, while others feel forced and, many times, pointless. Finding parts of the technology useful hasn’t made my concerns about it go away, either. I’ve been exploring what place this could have in regex101 for quite some time, following the developments and weighing my options carefully. I take great pride in the application and the features I ship, and I care about the people who use it. I didn’t want to add AI support just because every other app was doing it. If I was going to do it, it had to be useful, with a solid integration that made sense for regex101. I’ve spent time testing it with a small group of users, listening to their feedback, and refining the implementation. Their experiences have helped shape what I’ve built and given me more confidence that there is something valuable here. In the coming days, Pro subscribers of regex101 will have access to an AI assistant that can help create and refine regular expressions, as well as entire text pipelines. I believe this to be a genuinely valuable addition to the application. It is completely optional and is only engaged when you explicitly choose to use it. I’m happy to make this available, even as my feelings about AI as a whole remain complicated. I’ll keep listening to the people using regex101 and taking care with what I build. Your feedback means a lot to me, and I would love to hear your thoughts. Please feel free to share them with in whichever way suits you best, be it here in the comments or over email. I’ve attached a sneak peek of what you can expect in the comments.
1
172
You describe what you want in natural language, with the option of attaching additional context. The output is well formatted and displayed in the chat.
70
New challenges dropped in the regex101 quiz. Can you beat them?
174
TIL V8 can keep huge strings alive through legacy RegExp last-match state. In short, a regex match can keep the entire input string alive -- even after you’re done using it. It stays allocated, adding unnecessary memory pressure, until another successful match replaces that state.
189
Since everybody loves regex so much, I’ve remade the regex quiz on the site from scratch. New and improved challenges, try it on regex101.com/quiz
1
3
198
Have you considered regex101 Pro but decided not to subscribe? What held you back? I’d love to hear what I could improve.
224
I saw this great library submission recently, and just wanted to take the opportunity to give kudos to its author, Tiago Cussiol, and share it with you all. Super detailed description, and a 560 unit test suite to back it up: regex101.com/library/0BFrkM
1
1
239
This entry also exposed a major issue in the unit tester: it was incredibly slow. This suite took over 40 seconds (!) to finish on my computer. So, naturally, I took the opportunity to improve both the UI and the engine. It now looks nicer, and finishes in 1ms on my computer.
73
Due to popular demand, we’ve added a free preview mode to the regex101 debugger! 🐛 Take it for a spin and see how your regex runs, step by step. Let us know what you think!
1
1
1
283
You can now convert regexes between flavors directly on regex101! Write your regex in the flavor you know best, then convert it with confidence to the flavor you need. 🔄
2
200
How many of you still write your regexes by hand?
2
1
242
What would you like to see in a desktop regex101 app?
1
187
How do you prefer to read the changelog? Should I try to categorize it, or just keep the numbered list?
1
1
198
Replying to @neo_subhamoy
regex101 is keeping the entire software industry running tbh
1
2
102
There are two "ana"s in "banana". 🍌 /ana/g only finds one. /(?=(ana))/g captures both. The trick: a lookahead checks ahead without consuming characters, so overlapping captures are possible. #regex #JavaScript
1
10
282