Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 278 Bytes

substitute.md

File metadata and controls

23 lines (17 loc) · 278 Bytes

Examples for the substitute filter

Original file

line1 text here
line2 text here

Output file

line1 text here
line2 text new

Filter

filter_lines '/example/substitute' do
 filters(substitute: [/^line2/, /here/, 'new'])
end