home ~ projects ~ socials

Match The Start Of A Line In A sed Regular Expression

Find The First

Use ^ as the first character of a match to match the start of a line. For example:

s@^some thing@other thing@g
-- end of line --