by Sasa Kanjuh | Mar 5, 2023 | Regex
Intro Sometimes we are interested in the way something ends, whether it’s a single word or an entire line. Regex offer quite a convenient way of achieving this, so let’s look at a few examples and learn how 🙂 Regex to match the last character of the line Matching the...
by Sasa Kanjuh | Feb 28, 2023 | Regex
Match currencies If looking at/through receipts or invoices is annoying for you, but it’s frequently a part of your routine, regex can help tremendously by highlighting/extracting the most important stuff, figures.Let’s show some examples, shall we? For this example,...
by Sasa Kanjuh | Feb 20, 2023 | Regex
Match everything between two words Quite often we are trying to find if there is something (specific) or anything between a certain strings/words/characters. Let’s use a simple shopping list as an example: “Fruits to buy: apples, bananas, kiwis,...
by Sasa Kanjuh | Feb 7, 2023 | Regex
Everything after the word There is often a case when we need to match a certain text/string, but with regards to its appearance, like before or after some other string/word/pattern. We can target the word we want to use as a position reference, and match everything...
by Sarker | Jan 29, 2023 | Regex
Introduction A regular expression, also shortened as regex and regexp, is a type of searching pattern inside a text/code editor that supports it, which allows for a deep level of text manipulation. A regular expression can not only search for a given string, but can...