{"id":15136,"date":"2024-04-27T09:21:49","date_gmt":"2024-04-27T07:21:49","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=15136"},"modified":"2024-04-27T09:22:23","modified_gmt":"2024-04-27T07:22:23","slug":"grex-regulaere-ausdruecke-unter-linux-ganz-einfach","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2024\/04\/27\/grex-regulaere-ausdruecke-unter-linux-ganz-einfach\/","title":{"rendered":"grex &#8211; Regul\u00e4re Ausdr\u00fccke unter Linux ganz einfach"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Regul\u00e4re Ausdr\u00fccke oder Regular Expressions, auch ganz einfach Regex genannt, ist so gut wie \u00fcberall in der IT &#8211; also gerade unter Linux \u00e4u\u00dferst hilfreich. Sobald man etwas sucht &#8211; Regex ist der gro\u00dfe Helfer.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Doch &#8211; Regex ist nicht unbedingt einfach zu erlernen, es gibt einfach viel zu viele M\u00f6glichkeiten &#8211; und, wenn man Regex nur selten braucht, fehlt meist auch die Motivation sich mehr damit zu befassen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Mit grex erstellen Sie regul\u00e4re Ausdr\u00fccke ganz einfach, ohne viel Aufwand.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">grex installieren<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Sie finden grex auf <a href=\"https:\/\/github.com\/pemistahl\/grex\/releases\">GitHub<\/a> zum Download (<em>nicht arm mit amd64 verwechseln<\/em>), das heruntergeladene Archiv gilt es nur zu entpacken und die entpackte Datei &#8222;<strong>grex<\/strong>&#8220; als root auf dem Terminal nach &#8222;<em>\/usr\/bin<\/em>&#8220; zu verschieben:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mv grex \/usr\/bin\/<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">grex nutzen<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Die Software ist ganz einfach zu benutzen &#8211; es gilt die Syntax:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>grex Zeichenfolge<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Ich will beispielsweise einen regul\u00e4ren Ausdruck &#8222;<strong>Ubuntu 22.04<\/strong>&#8220; erstellen:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>grex Ubuntu 22.04<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Die Software zeigt als Ausgabe den regul\u00e4ren Ausdruck:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/04\/grex.jpeg\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" width=\"924\" height=\"466\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/04\/grex.jpeg\" alt=\"\" class=\"wp-image-15137\" style=\"width:380px;height:auto\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/04\/grex.jpeg 924w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/04\/grex-150x76.jpeg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/04\/grex-300x151.jpeg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/04\/grex-768x387.jpeg 768w\" sizes=\"auto, (max-width: 924px) 100vw, 924px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Die Software leistet aber durchaus vieles mehr &#8211; mehr dazu mit dem Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>grex --help<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">oder auf <a href=\"https:\/\/github.com\/pemistahl\/grex\" target=\"_blank\" rel=\"noreferrer noopener\">GitHub<\/a>.<\/p>\n<div class=\"pld-like-dislike-wrap pld-custom\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir\" data-post-id=\"15136\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Hoch.png\" alt=\"Gef\u00e4llt mir\" \/>\r\n            <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">2    <\/span>\r\n<\/div><div class=\"pld-dislike-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-dislike-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir nicht\" data-post-id=\"15136\" data-trigger-type=\"dislike\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Runter.png\" alt=\"Gef\u00e4llt mir nicht\" \/>\r\n            <\/a>\r\n    <span class=\"pld-dislike-count-wrap pld-count-wrap\"><\/span>\r\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Regul\u00e4re Ausdr\u00fccke oder Regular Expressions, auch ganz einfach Regex genannt, ist so gut wie \u00fcberall in der IT &#8211; also gerade unter Linux \u00e4u\u00dferst hilfreich. Sobald man etwas sucht &#8211; Regex ist der gro\u00dfe Helfer. Doch &#8211; Regex ist nicht unbedingt einfach zu erlernen, es gibt einfach viel zu viele M\u00f6glichkeiten &#8211; und, wenn man [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":15137,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[12,7,6],"class_list":["post-15136","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-terminal","tag-kommandozeile","tag-shell","tag-terminal"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/15136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/comments?post=15136"}],"version-history":[{"count":2,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/15136\/revisions"}],"predecessor-version":[{"id":15139,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/15136\/revisions\/15139"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media\/15137"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=15136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=15136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=15136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}