3 ms·
The problem I have with all of these regex websites and tools is that they usually only use the regex dialect of whatever language they’re written in. Or at bes
by goerz 7y ago
The problem I have with all of these regex websites and tools is that they usually only use the regex dialect of whatever language they’re written in. Or at best, a very incomplete list of dialects. Subtle differences between dialects matter a lot. Personally, I would need at least Perl, Python, GNU utils (with and without -E), BSD utils (or whatever comes with macOS, again with and without-E), and vim with the various settings for “magic”. Ideally, they would also be able to convert between all these dialects.
- 1f60c 7y agoSounds like a fun side project :D
- LameRubberDucky 7y agoIf you were on Windows, you could try RegexBuddy. It supports regex dialects for: .NET, Boost (C++), Delphi, Groovy, Oracle Database, PowerShell, R, std::regex, VB6, wxWidgets, C#, MySQL, PHP, PostgreSQL, VBScript, Java, Perl, PCRE, JavaScript, Python, Ruby, Tcl ARE, POSIX BRE, POSIX ERE, GNU BRE, GNU ERE, XML Schema, and XPath. It will even generate code snippets for you based on the regex you create with the tool. It can also convert between these dialects and lets you know if features in the target dialect are not available. I am not associated with this company in any way, just a long time user.
- goerz 7y agoThat does look impressive! I'm tempted to check how well this runs in Wine (since I'm not a Windows user)
- las_balas_tres 7y agoRegexBuddy is a fantastic piece of software. It also runs fine under Wine.
- jonny_eh 7y agohttps://regex101.com/ https://regex101.com/ supports 4 dialects. Certainly not exhaustive, but very handy none-the-less.