grep string between strings
echo "beforestring-THIS IS THE STRING I WANT-afterstring" | \
grep -o -P '(?<=beforestring-).*(?=-afterstring)'
echo "beforestring-THIS IS THE STRING I WANT-afterstring" | \
grep -o -P '(?<=beforestring-).*(?=-afterstring)'