Skip to content

Latest commit

 

History

History
78 lines (59 loc) · 902 Bytes

pipe.md

File metadata and controls

78 lines (59 loc) · 902 Bytes

1

a b c d
^^^^^ 0

1 pipe-replace-with-regexp

up

  • .selections.pipe.replace { expression: String.raw/\s/-/g }
a-b-c d
^^^^^ 0

1 pipe-replace-with-regexp-newline

up

  • .selections.pipe.replace { expression: String.raw/\s/\n/g }
a
^^ 0
b
^^ 0
c d
^ 0

1 pipe-replace-with-regexp-backslash-n

up

  • .selections.pipe.replace { expression: String.raw/\s/\\n/g }
a\nb\nc d
^^^^^^^ 0

1 pipe-replace-with-regexp-backslash-newline

up

  • .selections.pipe.replace { expression: String.raw/\s/\\\n/g }
a\
^^^ 0
b\
^^^ 0
c d
^ 0

1 pipe-replace-with-js

up

  • .selections.pipe.replace { expression: String.raw$.replace(/\s/g, "-") }
a-b-c d
^^^^^ 0

1 pipe-replace-with-js-newline

up

  • .selections.pipe.replace { expression: String.raw$.replace(/\s/g, "\n") }
a
^^ 0
b
^^ 0
c d
^ 0