I have a file, which should have an entry like this -
'new_revision': '111c1110b08b96c987482e08d28d84ea3d777egh',
I want to find this line and replace it with something like this
'new_revision': '000c0000b08b96c987482e08d28d84ea3d777eml',
I tried commands like-
sed -i 's/'new_revision': ''([a-z0-9]{40})''/'new_revision': '000c0000b08b96c987482e08d28d84ea3d777eml'/' file
But doesn't work properly and gives error as no matches found.