603 B
603 B
DeaDvey's domain
Home page Blogs Resources
Regex/Sed:
Useful resources:
- regex101, Helps to test regex patterns
Features:
-
Alternative Delimiter
- You don't have to use / as a delimiter
- you can use #, @ or something else
-
Backreferencing,
- you can capture a bit of text in the pattern section, with (.*)
- then backreference it's index in the repalce part with \1, \2, \3...: %%% s#"(.*)"#'\1'#
// Input: "hello" "how are you?" "good"
//Output 'hello' 'how are you?' 'good' %%%