by James889
 P: 184 Howdy, I came across a regular expression i couldn't get my head around. ' there $$[^ ]*$$' echo "Howdy there neighbor" | sed 's/there $$[^ ]*$$//' returns howdy. It's the subgroup that's a bit confusing. match any sentence which contains banana then a space and then a non-space character. Is this the correct way of interpreting this regular expression ?