Know How Bash Regex and Patterns Differ

Опубликовано: 05 Август 2021
на канале: rwxrob
2,290
29

Say you want to match a regular expression and get a capture a run of characters from it, but then you also want to replace characters in that same line. To do this entirely in Bash requires use of both a regular expression and a parameter expansion pattern match.

Study the following script to understand what is going on.

Can you spot the regular expression?
What type of regular expression is it? Which engine?
Can you spot the pattern match parameter expansion?

https://raw.githubusercontent.com/rwx...
Thanks sponsors, subs, and followers:

GitHub: https://github.com/sponsors/rwxrob
Twitch:   / rwxrob  
Twitter:   / rwxrob  
Discord:   / discord  

[ZETID:20210804220056]
https://github.com/rwxrob/zet/tree/ma...


Смотрите видео Know How Bash Regex and Patterns Differ онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь rwxrob 05 Август 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 2,290 раз и оно понравилось 29 людям.