CHECK-REGEXP(1)

πŸ’– CHECK-REGEXP(1) β€” the group chat version πŸ’–

okay bestie, so this is a User Commands page for check-regexp, and honestly? it's giving "tiny tool, huge main character energy." ✨


🌸 NAME 🌸

check-regexp β€” test regular expressions from the command line πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

check-regexp 'regular expression' 'string1' 'string2' ...

πŸ’… DESCRIPTION πŸ’…

so check-regexp is part of GNU Source-highlight, and it's literally the simplest little vibe: you pass your regular expression as the first command line argument, and then all the strings you wanna try to match after it. that's it. that's the whole thing. πŸ’–

okay but listen β€” this part is CRUCIAL, no cap: to avoid shell substitutions you have to wrap both the expression and the strings in single quotes. like, both. the expression and the strings. do not skip this. the shell will eat your regex and you'll be sitting there like πŸ§β€β™€οΈ

then the program prints some info about the possibly-successful matching. πŸ”₯

in that output:

  • the what[0] part represents the whole match
  • the what[i] part represents the i-th marked subexpression that matched πŸ‘‘

and it also prints possible prefix and suffix, because it's thorough like that. πŸ’…


✨ OPTIONS ✨

this program follows the usual GNU command line syntax, with long options starting with two dashes (-). a summary of the options is included below, bestie. 🫢

  • -h, --help β€” print help and exit 😌
  • -V, --version β€” print version and exit πŸ’€

πŸ‘‘ AUTHOR πŸ‘‘

check-regexp was written by Lorenzo Bettini <www.lorenzobettini.it>.

this man page was written by Cesare Tirabassi <norsetto@ubuntu.com>.


🌈 SEE ALSO 🌈

no SEE ALSO section in the original, so there's nothing to link here β€” consider this a little vibe break πŸ¦‹


okay that's the whole page, you ate that. πŸ’… and for the cute sign-off: this is check-regexp 2.9, dated June 2008 β€” yeah, she's an icon from 2008 and she's still serving. periodt. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from