Add the shuffle operator Ш to regexps. PШQ is the regexp that matches strings that are formed by interleaving strings that match P and Q. So (cat)Ш(dog) matches "catdog", "dogcat" and "dcoatg".
Modify the pairing so <R,S> is the […]
Add the shuffle operator Ш to regexps. PШQ is the regexp that matches strings that are formed by interleaving strings that match P and Q. So (cat)Ш(dog) matches "catdog", "dogcat" and "dcoatg".
Modify the pairing so <R,S> is the […]
@darius I wrote an “AI” script for IRC bots (eggdrop) and it was just mountains of regexps and canned template sentences with a bunch of logic to let it learn words it saw and counters for “mood” and “friendship” etc and people really wanted it to be actual AI.
I had someone […]
@darius I wrote an “AI” script for IRC bots (eggdrop) and it was just mountains of regexps and canned template sentences with a bunch of logic to let it learn words it saw and counters for “mood” and “friendship” etc and people really wanted it to be actual AI.
I had someone […]
Today the Ruby team released Ruby 4.0.9, 3.4.12, and 3.3.13, fixing memory safety bugs in the regular expression engine. Check if your Ruby and Rails apps are vulnerable!
paraxial.io/blog/ruby-dy...
Today the Ruby team released Ruby 4.0.9, 3.4.12, and 3.3.13, fixing memory safety bugs in the regular expression engine. Check if your Ruby and Rails apps are vulnerable!
paraxial.io/blog/ruby-dy...
Generally, I think, there are two sides to regexps:
Once, it's the APL of text. There's probably no more concise way to describe and process strings.
Then, there's also the algorithmic challenge.
(Personally, I'm less interested in the latter.)
Generally, I think, there are two sides to regexps:
Once, it's the APL of text. There's probably no more concise way to describe and process strings.
Then, there's also the algorithmic challenge.
(Personally, I'm less interested in the latter.)
my regexp sort is lazy for now and I’ll need to handle that differently later
my regexp sort is lazy for now and I’ll need to handle that differently later
kimi: look!!! i've invented grep() in python without using subprocess. do u like this
kimi: look!!! i've invented grep() in python without using subprocess. do u like this
On one Discord server, I started a trend where users changed their name to regexps like on my GitHub profile. On another, people were curious about my homelab.
On one Discord server, I started a trend where users changed their name to regexps like on my GitHub profile. On another, people were curious about my homelab.
• Parsing HTML with regexps has a bad rap
• But parsing can mean many different things
• Modern regexps can overcome widely cited technical limitations
• But a parser is still a much better tool
• Still, if you can't use one, it's okay to try regexps
• Parsing HTML with regexps has a bad rap
• But parsing can mean many different things
• Modern regexps can overcome widely cited technical limitations
• But a parser is still a much better tool
• Still, if you can't use one, it's okay to try regexps
Use comments and formatting.
Working with dense oneliners is a nightmare.
Working with tidy and annotated regexps is a breeze.
Do yourself a favor and enable comments and formatting with the "x" flag.
Use comments and formatting.
Working with dense oneliners is a nightmare.
Working with tidy and annotated regexps is a breeze.
Do yourself a favor and enable comments and formatting with the "x" flag.
Use lookarounds to make assertions inside regexps:
• Positive lookahead (?=)
• Negative lookahead (?=)
• Positive lookbehind (?<)
• Negative lookbehind (?<!)
See the thread 👇 🧵
Use lookarounds to make assertions inside regexps:
• Positive lookahead (?=)
• Negative lookahead (?=)
• Positive lookbehind (?<)
• Negative lookbehind (?<!)
See the thread 👇 🧵
Learn the new Tag Processor API upcoming in WordPress 6.2 and say goodbye to clunky regexps.
Link in the thread 🧵👇
Learn the new Tag Processor API upcoming in WordPress 6.2 and say goodbye to clunky regexps.
Link in the thread 🧵👇
https://x.com/xwolf/status/613654034612899841
https://x.com/xwolf/status/613654034612899841