Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

sed get substring between two characters

echo "Here is a string" | grep -o -P '(?<=Here).*(?=string)'
 
PREVIOUS NEXT
Tagged: #sed #substring #characters
ADD COMMENT
Topic
Name
2+5 =