python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
translate pcregrep into Perl one-liner
I need to find all active network interfaces on new macOS. That means the following one-liner with pcregrep will not work:
ifconfig | pcregrep -M -o '^[^\t:]+(?=:([^\n]|\n\t)*status: active)'
because...
Marek Stepanek
Votes: 0
Answers: 3
How to remove multi-line with multi-pattern, awk pcre2grep sed
I have this text file
tittleofthis123
<Bunlde ver=5.0>
<Packages>
<Package Type="app" FileName="Package_ARM64_beta.msix" Offset="79" Size="5791...
Akbar Nur Pribadi
Votes: 0
Answers: 2
how to trim the absolute directory path?
I have a absolute path to directory halo:
/pkg/check/power/halo
I want to trim the absolute path to only:
/pkg/halo
how can i do that using regex or pcreCompile function or unix?
Surabh S
Votes: 0
Answers: 2