Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

regex match + n lines

# Matches 40 lines below the line starting with "your anchor"
your anchor((?:.*
){1,40})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #regex #match #lines
ADD COMMENT
Topic
Name
7+3 =