Skip to main content

Posts

Showing posts with the label redos

GPT For Regex - Pros And Cons

  RegExGPT is a online playground that lets you enter a source  and a target string to let GPT generate the regular expression for a match. But what are the pros and cons of the GPT approach to regex code generation? Despite their power, regular expressions come with their own challenges; they have a tendency to quickly become unreadable so that understanding them becomes a matter of deobfuscation as well as learning how to use them involves a steep curve. https://www.i-programmer.info/news/105-artificial-intelligence/16321-gpt-for-regex-pros-and-cons.html

Regexploit - Put A Stop To Regular Expression DoS Attacks

  There's a new tool that can identify resource-hungry regular expressions that can be potentially exploited in launching ReDos attacks. In  Can Regular Expressions Be Safely Reused Across Languages?  I looked into whether it is possible to reuse a regular expression crafted in JavaScript verbatim in Python. Would doing so lead to the same results and performance? Swap your languages of interest in place of JavaScript and Python; the question remains the same. Setting aside the question of equality of the cross-language results, the article also looked at the performance side of the story which perfectly relates to this Regxploit tale. full article on i-programmer