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
Coming soon
7
9
181
21,924
Personally, I prefer dark mode.
1
1
11
2,274
Regex101 now handles line endings much more reliably than before, which now highlights discrepancies between the engines to a greater degree. If you use PCRE, you may want to explore line ending control verbs such as (*CRLF) Run the converter when in doubt and have it help you.
1
262
Sneak peek of the upcoming diagram feature of regex101. Fully interactive and integrated into the editor. Do you have a wishlist?
6
577
Would there be value in a regex railroad diagram?
5
376
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
182
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
185
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.
83
New challenges dropped in the regex101 quiz. Can you beat them?
185
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.
199
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
209
Have you considered regex101 Pro but decided not to subscribe? What held you back? I’d love to hear what I could improve.
231
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
246
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.
80
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
288
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
206