filmov
tv
An introduction to regular expressions in Vim

Показать описание
This is a brief overview that covers probably 80% of typical regular expression use cases for refactoring applications.
I had a brain fart about halfway through, if you want to select a region based on regular expressions, your command is this:
:g/[pattern1]/ s/[pattern-to-sub]/[replacement]/[flags]
Not worth re-recording the video for one line :).
NOTE: It was pointed out to me that my history example would BREAK if the commands include a semicolon. This is absolutely correct. The date capture group could be done like this instead: (:\s+\d*:\d;) or is a little more sly way (:.\{-};). Thanks to u/pyz3n for the catch!
I had a brain fart about halfway through, if you want to select a region based on regular expressions, your command is this:
:g/[pattern1]/ s/[pattern-to-sub]/[replacement]/[flags]
Not worth re-recording the video for one line :).
NOTE: It was pointed out to me that my history example would BREAK if the commands include a semicolon. This is absolutely correct. The date capture group could be done like this instead: (:\s+\d*:\d;) or is a little more sly way (:.\{-};). Thanks to u/pyz3n for the catch!
Regular Expressions (RegEx) in 100 Seconds
Learn Regular Expressions In 20 Minutes
2.1: Introduction to Regular Expressions - Programming with Text
Regular Expression
Introduction to Regular Expressions
Finally Understand Regular Expressions - In Just 7 Minutes!
1. Introduction, Finite Automata, Regular Expressions
Regular Expressions - Computerphile
Python course tutorials session 526
Introduction to Regular Expressions - Part 1
[5 Minute Tutorial] Regular Expressions (Regex) in Python
Introduction to Regular Expressions (A-Level)
Intro to Regular Expressions
Learn Regular Expressions (Regex) - Crash Course for Beginners
Introduction to RegEx
What is RegEx? | Introduction to Regexes | Regular Expressions and Java Patterns | Geekific
Python Tutorial: Introduction to regular expressions
Regular Expressions (RegEx) Learn and Master | Introduction #1
Regular Expressions Introduction: Simple Character Classes
Introduction to Regular Expressions (RegEx) | JNUC 2022
Using Regular Expressions - Introduction and Simple Use Case
REGEX (REGULAR EXPRESSIONS) WITH EXAMPLES IN DETAIL | Regex Tutorial
Introduction to Regular Expressions
Regular Expressions (Regex) Tutorial: How to Match Any Pattern of Text
Комментарии