<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Regex on Karpoke - Just Another Blog</title><link>http://karpoke.ignaciocano.com/tags/regex/</link><description>Recent content in Regex on Karpoke - Just Another Blog</description><generator>Hugo -- 0.167.0</generator><language>es</language><lastBuildDate>Sun, 12 May 2024 09:21:39 +0100</lastBuildDate><atom:link href="http://karpoke.ignaciocano.com/tags/regex/index.xml" rel="self" type="application/rss+xml"/><item><title>How to Master Regex in Bash</title><link>http://karpoke.ignaciocano.com/2024/05/12/how-to-master-regex-in-bash/</link><pubDate>Sun, 12 May 2024 09:21:39 +0100</pubDate><guid>http://karpoke.ignaciocano.com/2024/05/12/how-to-master-regex-in-bash/</guid><description>&lt;blockquote&gt;
&lt;p&gt;regular expressions (regex), are perfect for matching, searching, and
manipulating text based on specific patterns.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;» unixmen.com | &lt;a href="https://www.unixmen.com/how-to-master-regex-in-bash/"&gt;unixmen.com&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Dos curiosidades sobre fórmulas relacionadas con los números primos</title><link>http://karpoke.ignaciocano.com/2023/08/19/dos-curiosidades-sobre-formulas-relacionadas-con-los-numeros-primos/</link><pubDate>Sat, 19 Aug 2023 12:43:50 +0100</pubDate><guid>http://karpoke.ignaciocano.com/2023/08/19/dos-curiosidades-sobre-formulas-relacionadas-con-los-numeros-primos/</guid><description>&lt;blockquote&gt;
&lt;p&gt;Esta regexp en Perl comprueba si un número es primo o no / Avinash
Meetoo En los últimos meses descubrí un par de curiosidades sobre
fórmulas para generar números primos y comprobarlos, entendiendo por
«fórmulas» o bien una función matemática o bien&amp;hellip;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;» @Alvy | &lt;a href="https://www.microsiervos.com/archivo/matematicas/formulas-numeros-primos.html"&gt;microsiervos.com&lt;/a&gt;&lt;/p&gt;</description></item><item><title>URL RegEx Pattern – How to Write a Regular Expression for a URL</title><link>http://karpoke.ignaciocano.com/2023/05/16/url-regex-pattern-how-to-write-a-regular-expression-for-a-url/</link><pubDate>Tue, 16 May 2023 00:09:56 +0100</pubDate><guid>http://karpoke.ignaciocano.com/2023/05/16/url-regex-pattern-how-to-write-a-regular-expression-for-a-url/</guid><description>&lt;blockquote&gt;
&lt;p&gt;Regular expressions provide a powerful and flexible way to define
patterns and match specific strings, be it usernames, passwords, phone
numbers, or even URLs. In this article, I&amp;rsquo;ll show you the fundamentals
of crafting a regular expression for URLs&amp;hellip;.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;» freeCodeCamp.org | &lt;a href="https://www.freecodecamp.org/news/how-to-write-a-regular-expression-for-a-url/"&gt;freecodecamp.org&lt;/a&gt;&lt;/p&gt;</description></item><item><title>What Does '$' Mean in RegEx?</title><link>http://karpoke.ignaciocano.com/2023/04/22/what-does-mean-in-regex/</link><pubDate>Sat, 22 Apr 2023 12:02:40 +0100</pubDate><guid>http://karpoke.ignaciocano.com/2023/04/22/what-does-mean-in-regex/</guid><description>&lt;blockquote&gt;
&lt;p&gt;The $ symbol is one of the most commonly used symbols in RegEx. It is
used to match the end of a string. In other words, you can call it &amp;ldquo;end
of line anchor&amp;rdquo;, since it anchors a pattern to the end of the line. In
this article, I’ll show&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;» freeCodeCamp.org | &lt;a href="https://www.freecodecamp.org/news/what-does-mean-in-regex/"&gt;freecodecamp.org&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Use ChatGPT to Build a Low Code RegEx Generator</title><link>http://karpoke.ignaciocano.com/2023/03/31/use-chatgpt-to-build-a-low-code-regex-generator/</link><pubDate>Fri, 31 Mar 2023 21:37:28 +0100</pubDate><guid>http://karpoke.ignaciocano.com/2023/03/31/use-chatgpt-to-build-a-low-code-regex-generator/</guid><description>&lt;blockquote&gt;
&lt;p&gt;Are you tired of spending hours writing complex Regular Expressions
(RegEx) to manipulate strings? Do you want to learn how to build a RegEx
generator quickly and easily? Then this course is for you! We just
published a course on the freeCodeCamp.org&amp;hellip;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;» freeCodeCamp.org | &lt;a href="https://www.freecodecamp.org/news/use-chatgpt-to-build-a-regex-generator/"&gt;freecodecamp.org&lt;/a&gt;&lt;/p&gt;</description></item><item><title>My Top 3 Regex Tools</title><link>http://karpoke.ignaciocano.com/2022/12/26/my-top-3-regex-tools/</link><pubDate>Mon, 26 Dec 2022 12:24:19 +0100</pubDate><guid>http://karpoke.ignaciocano.com/2022/12/26/my-top-3-regex-tools/</guid><description>&lt;blockquote&gt;
&lt;p&gt;A regular expression - short regex - is a sequence of characters that
defines a search pattern.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;» hackernoon.com | &lt;a href="https://hackernoon.com/my-top-3-regex-tools"&gt;hackernoon.com&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Diving Deeper in Vim Regular Expressions</title><link>http://karpoke.ignaciocano.com/2022/11/30/diving-deeper-in-vim-regular-expressions/</link><pubDate>Wed, 30 Nov 2022 18:14:51 +0100</pubDate><guid>http://karpoke.ignaciocano.com/2022/11/30/diving-deeper-in-vim-regular-expressions/</guid><description>&lt;blockquote&gt;
&lt;p&gt;Let&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;» The Valuable Dev | &lt;a href="https://thevaluable.dev/vim-regular-expressions-in-depth/"&gt;thevaluable.dev&lt;/a&gt;&lt;/p&gt;</description></item><item><title>The Regular Expression (RegEx) Cheat Sheet you always wanted</title><link>http://karpoke.ignaciocano.com/2022/08/19/the-regular-expression-regex-cheat-sheet-you-always-wanted/</link><pubDate>Fri, 19 Aug 2022 22:07:35 +0100</pubDate><guid>http://karpoke.ignaciocano.com/2022/08/19/the-regular-expression-regex-cheat-sheet-you-always-wanted/</guid><description>&lt;blockquote&gt;
&lt;p&gt;I get it even though Regex is incredibly useful, it is extremely hard to
master! This is a cheat&amp;hellip;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;» DEV Community | &lt;a href="https://dev.to/ruppysuppy/the-regular-expression-regex-cheat-sheet-you-always-wanted-1c8h"&gt;dev.to&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Una recopilación de las funciones RegEx más habituales</title><link>http://karpoke.ignaciocano.com/2022/02/27/una-recopilacion-de-las-funciones-regex-mas-habituales/</link><pubDate>Sun, 27 Feb 2022 15:03:00 +0100</pubDate><guid>http://karpoke.ignaciocano.com/2022/02/27/una-recopilacion-de-las-funciones-regex-mas-habituales/</guid><description>&lt;blockquote&gt;
&lt;p&gt;RegEx Library es una recopilación de la gente de UI Bakery en la que se
pueden encontrar las expresiones regulares (RegEx) más comunes,
incluyendo las que se suelen usar para la validación y extracción de
datos de: Direcciones de correo Números&amp;hellip;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;» @Alvy | &lt;a href="https://www.microsiervos.com/archivo/ordenadores/recopilacion-funcones-regex.html"&gt;microsiervos.com&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Comando Sed, con ejemplos para reemplazar textos y cadenas en Linux</title><link>http://karpoke.ignaciocano.com/2021/07/06/comando-sed-con-ejemplos-para-reemplazar-textos-y-cadenas-en-linux/</link><pubDate>Tue, 06 Jul 2021 10:37:21 +0100</pubDate><guid>http://karpoke.ignaciocano.com/2021/07/06/comando-sed-con-ejemplos-para-reemplazar-textos-y-cadenas-en-linux/</guid><description>&lt;blockquote&gt;
&lt;p&gt;En mi artículo anterior sobre las expresiones regulares, di algunos
ejemplos de maneras en las que sepuede utilizar en la línea de comandos,
con varias utilidades. Las Expresiones regulares también se pueden
utilizar dentro de muchos editores de texto (a veces con una sintaxis…&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;» Javier Orovengua | &lt;a href="https://www.linuxparty.es/35-linux/10695-comando-sed-con-ejemplos-para-reemplazar-textos-y-cadenas-en-linux.html"&gt;linuxparty.es&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Regular Expressions cheat sheet</title><link>http://karpoke.ignaciocano.com/2020/12/03/regular-expressions-cheat-sheet/</link><pubDate>Thu, 03 Dec 2020 16:40:22 +0100</pubDate><guid>http://karpoke.ignaciocano.com/2020/12/03/regular-expressions-cheat-sheet/</guid><description>&lt;blockquote&gt;
&lt;p&gt;Regular expression is a powerful tool, and it can save lots of lines
codes sometimes. What&amp;hellip;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;» DEV Community | &lt;a href="https://dev.to/mingyena/regular-expressions-cheat-sheet-4ec3"&gt;dev.to&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Intro to Bash Regular Expressions</title><link>http://karpoke.ignaciocano.com/2020/10/19/intro-to-bash-regular-expressions/</link><pubDate>Mon, 19 Oct 2020 23:55:39 +0100</pubDate><guid>http://karpoke.ignaciocano.com/2020/10/19/intro-to-bash-regular-expressions/</guid><description>&lt;blockquote&gt;
&lt;p&gt;To me, regular expressions are often made far more complicated than they
need to be. Sure, there&amp;hellip;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;» DEV Community | &lt;a href="https://dev.to/zachgoll/intro-to-bash-regular-expressions-4d2p"&gt;dev.to&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Regex para torpes</title><link>http://karpoke.ignaciocano.com/2020/07/27/regex-para-torpes/</link><pubDate>Mon, 27 Jul 2020 15:52:07 +0100</pubDate><guid>http://karpoke.ignaciocano.com/2020/07/27/regex-para-torpes/</guid><description>&lt;blockquote&gt;
&lt;p&gt;Regex para torpes&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;» blog.adrianistan.eu | &lt;a href="https://blog.adrianistan.eu/regex-torpes"&gt;blog.adrianistan.eu&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Demystifying the regular expression that checks if a number is prime</title><link>http://karpoke.ignaciocano.com/2016/09/10/demystifying-the-regular-expression-that-checks-if-a-number-is-prime/</link><pubDate>Sat, 10 Sep 2016 18:02:00 +0100</pubDate><guid>http://karpoke.ignaciocano.com/2016/09/10/demystifying-the-regular-expression-that-checks-if-a-number-is-prime/</guid><description>&lt;blockquote&gt;
&lt;p&gt;A while back I was researching the most efficient way to check if a number
is prime. This lead me to find the following piece of code:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;public static boolean isPrime(int n) {
return !new String(new char[n]).matches(”.?|(..+?)\\1+”);
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I was intrigued. While this might not be the most efficient way, it’s
certainly one of the less obvious ones, so my curiosity kicked in. How on
Earth could a match for the .?|(..+?)\1+ regular expression tell that a
number is not prime (once it’s converted to its unary representation)?&lt;/p&gt;
&lt;/blockquote&gt;</description></item><item><title>Visualization of Regular Expression Character Classes</title><link>http://karpoke.ignaciocano.com/2013/03/26/visualization-of-regular-expression-character-classes/</link><pubDate>Tue, 26 Mar 2013 20:52:00 +0100</pubDate><guid>http://karpoke.ignaciocano.com/2013/03/26/visualization-of-regular-expression-character-classes/</guid><description>&lt;blockquote&gt;
&lt;p&gt;We all know the regular expression character classes, right? There are
12 standard classes:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;[:alnum:] [:digit:] [:punct:]
[:alpha:] [:graph:] [:space:]
[:blank:] [:lower:] [:upper:]
[:cntrl:] [:print:] [:xdigit:]
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;But have you seen a visual representation of what these classes match?
Probably not. Therefore I created a visualization that illustrates
which part of the ASCII set each character class matches.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;» Peteris Krumins | &lt;a href="http://www.catonmat.net/blog/regex-char-classes/"&gt;catonmat.net&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Regular Expression Matching Can Be Simple And Fast</title><link>http://karpoke.ignaciocano.com/2012/06/21/regular-expression-matching-can-be-simple-and-fast/</link><pubDate>Thu, 21 Jun 2012 18:21:00 +0100</pubDate><guid>http://karpoke.ignaciocano.com/2012/06/21/regular-expression-matching-can-be-simple-and-fast/</guid><description>&lt;blockquote&gt;
&lt;p&gt;Historically, regular expressions are one of computer science’s
shining examples of how using good theory leads to good programs. They
were originally developed by theorists as a simple computational
model, but Ken Thompson introduced them to programmers in his
implementation of the text editor QED for CTSS. Dennis Ritchie
followed suit in his own implementation of QED, for GE-TSS. Thompson
and Ritchie would go on to create Unix, and they brought regular
expressions with them. By the late 1970s, regular expressions were a
key feature of the Unix landscape, in tools such as ed, sed, grep,
egrep, awk, and lex.&lt;/p&gt;
&lt;p&gt;Today, regular expressions have also become a shining example of how
ignoring good theory leads to bad programs. The regular expression
implementations used by today’s popular tools are significantly slower
than the ones used in many of those thirty-year-old Unix tools.&lt;/p&gt;
&lt;p&gt;This article reviews the good theory: regular expressions, finite
automata, and a regular expression search algorithm invented by Ken
Thompson in the mid-1960s. It also puts the theory into practice,
describing a simple implementation of Thompson’s algorithm. That
implementation, less than 400 lines of C, is the one that went head to
head with Perl above. It outperforms the more complex real-world
implementations used by Perl, Python, PCRE, and others. The article
concludes with a discussion of how theory might yet be converted into
practice in the real-world implementations.&lt;/p&gt;
&lt;/blockquote&gt;</description></item></channel></rss>