My tip of the of the day.

To match a literal dot "." with a regular expression, write

"[.]"

instead of

"\\." or "\\\\." or even "\\\\\\\\.",

depending on context. 😀

#regex #regexp #regularexpression #programming #stringmatching

Efficient DB2 String Matching: A Multi-Pattern Approach
Master DB2 string matching techniques! Go beyond simple LIKE clauses & explore efficient multi-pattern matching using joins & regular expressions for better performance. #DB2 #stringmatching #SQL #database #programming #LIKE
https://tech-champion.com/database/db2luw/efficient-db2-string-matching-a-multi-pattern-approach/
> More than 80 online string matching algorithms have been proposed over the years... the number of proposed solutions has doubled in the last 10 years... almost 50% of solutions in the last 10 years are based on bit-parallelism. https://arxiv.org/abs/1012.2547 #stringmatching #algorithms
The Exact String Matching Problem: a Comprehensive Experimental Evaluation

This paper addresses the online exact string matching problem which consists in finding all occurrences of a given pattern p in a text t. It is an extensively studied problem in computer science, mainly due to its direct applications to such diverse areas as text, image and signal processing, speech analysis and recognition, data compression, information retrieval, computational biology and chemistry. Since 1970 more than 80 string matching algorithms have been proposed, and more than 50% of them in the last ten years. In this note we present a comprehensive list of all string matching algorithms and present experimental results in order to compare them from a practical point of view. From our experimental evaluation it turns out that the performance of the algorithms are quite different for different alphabet sizes and pattern length.

arXiv.org
I asked ChatGPT to write a pf.conf to spec, 2023-06-07 version

ChatGPT prompt and answer Prompted by this exchange I just had to check what its capabilities were. Here is what happened: Note: ...