in reply to Perl treats period as space in string

... a database of phrases that I'm checking a string against.

The technique discussed in haukex's Building Regex Alternations Dynamically article may be helpful in such an application.


Give a man a fish:  <%-{-{-{-<

Replies are listed 'Best First'.
Re^2: Perl treats period as space in string
by parv (Parson) on Jul 21, 2021 at 01:18 UTC

    Today I noticed grex ...

    grex is a library as well as a command-line utility that is meant to simplify the often complicated and tedious task of creating regular expressions. It does so by automatically generating a single regular expression from user-provided test cases ...

    This project has started as a Rust port of the JavaScript tool regexgen written by Devon Govett ...

      Similar frak in clojure/cljs which might could be trawled for inspiration as well.

      The cake is a lie.
      The cake is a lie.
      The cake is a lie.