sweet ass-regex
My tribute to xkcd #37 — this regular expression changes “sweet-ass x” to “sweet ass-x”.
s/(\bsweet)[- ](ass)\s(\w)/$1 $2-$3/i
My tribute to xkcd #37 — this regular expression changes “sweet-ass x” to “sweet ass-x”.
s/(\bsweet)[- ](ass)\s(\w)/$1 $2-$3/i