Results for "matches"

Wire posts

  • To count the number of matches in a string !!! $str = "one.two.three.four"; $n =()= $str =~ /\./gi; print $n; #Tipsoftheday #Perl

    3886 days ago

  • regex (?(3)foo|fu)bar - Matches foo if 3rd subpattern has matched, fu if not #Tipsoftheday #Regex

    3748 days ago

  • Extract ten lines below matched string with grep: grep -A 10 "string" filename1 ; -B for above and -C for both #grep #Linux #Tricks #Lines #Matches

    2728 days ago