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
- alpine 3.22: source-highlight-doc 3.1.9-r14 Β· GPL-3.0-or-later
- alpine 3.23: source-highlight-doc 3.1.9-r14 Β· GPL-3.0-or-later
- alpine 3.24: source-highlight-doc 3.1.9-r14 Β· GPL-3.0-or-later
- arch rolling: source-highlight 3.1.9-19 Β· GPL-3.0-or-later
- centos-stream 10: source-highlight 3.1.9-25.el10 Β· GPL-3.0-or-later AND GFDL-1.1-or-later AND LicenseRef-Fedora-Public-Domain AND GPL-2.0-only AND GPL-3.0-only AND GPL-3.0-or-later WITH Bison-exception-2.2
- centos-stream 9: source-highlight 3.1.9-12.el9 Β· GPLv3+
- centos-stream 9: source-highlight 3.1.9-12.el9 Β· GPLv3+
- debian bookworm: source-highlight 3.1.9-4.2+b3 Β· GPL-3.0-or-later
- debian trixie: source-highlight 3.1.9-4.3+b1 Β· GPL-3.0-or-later
- fedora 43: source-highlight 3.1.9-25.fc43 Β· GPL-3.0-or-later AND GFDL-1.1-or-later AND LicenseRef-Fedora-Public-Domain AND GPL-2.0-only AND GPL-3.0-only AND GPL-3.0-or-later WITH Bison-exception-2.2
- fedora 43: source-highlight 3.1.9-25.fc43 Β· GPL-3.0-or-later AND GFDL-1.1-or-later AND LicenseRef-Fedora-Public-Domain AND GPL-2.0-only AND GPL-3.0-only AND GPL-3.0-or-later WITH Bison-exception-2.2
- fedora 44: source-highlight 3.1.9-27.fc44 Β· GPL-3.0-or-later AND GFDL-1.1-or-later AND LicenseRef-Fedora-Public-Domain AND GPL-2.0-only AND GPL-3.0-only AND GPL-3.0-or-later WITH Bison-exception-2.2
- fedora 44: source-highlight 3.1.9-27.fc44 Β· GPL-3.0-or-later AND GFDL-1.1-or-later AND LicenseRef-Fedora-Public-Domain AND GPL-2.0-only AND GPL-3.0-only AND GPL-3.0-or-later WITH Bison-exception-2.2
- nixos 26.05: source-highlight 3.1.9
- nixpkgs unstable: source-highlight 3.1.9
- opensuse-leap 16.0: source-highlight 3.1.9-160000.2.2 Β· GPL-3.0-only
- opensuse-leap 16.0: source-highlight 3.1.9-160000.2.2 Β· GPL-3.0-only
- opensuse-leap 16.0: source-highlight 3.1.9-160000.2.2 Β· GPL-3.0-only
- opensuse-leap 16.0: source-highlight 3.1.9-160000.2.2 Β· GPL-3.0-only
- ubuntu jammy: source-highlight 3.1.9-4.1build2 Β· GPL-3.0-or-later
- ubuntu noble: source-highlight 3.1.9-4.3build1 Β· GPL-3.0-or-later
- ubuntu questing: source-highlight 3.1.9-4.3build1
- ubuntu resolute: source-highlight 3.1.9-4.3build2 Β· GPL-3.0-or-later
- ubuntu stonking: source-highlight 3.1.9-4.3build2 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms