sed dislikes \d \w regex syntax

Reminder to not use \d, \w and such regex tokens when using regex with the linux streamline editor sed. Use [0-9] and [a-z] instead. Made me ask my first question on stackoverflow and getting downvoted for it :-P

https://regex101.com btw… when dealing with regular expressions, a handy tool. would be nice to have a sed syntax checker included though.

Leave a Comment