Intro To be quite frank, I wasn’t even aware this issue existed until I started writing this article, so it made me wonder how is it possible I never encountered it before, given I have used git for almost 10 years at this point. Well, from what I managed to gather,...
Author
Sasa Kanjuh
How to match last character(s) using 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...
How to match currencies using 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,...
How to match everything between using 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, lemons,...
How to match everything after using 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...