grammar_pattern_b-a-repeat_c.sed 181 B

1234
  1. # Given this pattern "b {a} c" puts this replacement "b {a} c |||| aList. Run with sed -n
  2. #s/.*\(\(\b.\{4,\}\)\s*{\(.*\2.*\)}\).*/\1 \2List/p
  3. s/.*[^']{\(.*[^']\)}.*/& |||| \1List/p