14 Common Misconceptions About regex match any character including newline

The reason this is called a regex is because it matches any character, including newline. If you have a line like “I hate regex” then you can change the expression to “I hate regex”.*.

I hate regex as I hate anything that matches a line like I hate regex.

I hate regex. It’s bad enough that it’s a piece of malicious software.

And that makes regex a very powerful tool. It can be used to parse very complicated strings, or it can be used to search through a very long list of strings. The regex I hate is called a regular expression because it literally means “regex” as in “regex is a type of regex.” That makes it the most powerful language in the world of regex.

If I were to use a regular expression to parse a string such as ‘abc’ and replace it with ‘abc’ – that would replace the character before ‘abc’. That would make it more powerful.

However, it is not a good idea to use a regular expression as the only way to do something. It is a good idea to use one of these regexes in conjunction with a program or a tool like sed to accomplish a task. This makes the regular expression a tool rather than a toolbox.

I love the idea of regular expressions, but this is more like a regex cheat sheet. I’d rather stick with just using a tool, but there is no substitute for a program. I am not a fan of using a regex as a solution, I do not understand the power of that, and I don’t want to be the guy to break the regex, so I like to just use sed and use the results as a hint to the next step.

The point is that sed is not a regex, its an alias to a command. Its not a substitute for a regular expression, but it is a tool that can be used with regular expressions.

The reason I use sed is because the regular expression engine in sed can be used to search and replace strings for any character including newline. By using sed, I can search and replace a single string, instead of searching through a bunch of strings and replacing one by one each time.

I’ve used a regular expression with sed before, however, I didn’t realize it was something that could be used to search and replace strings. I actually like the way it works.

Leave a comment