This example converts a MD image to a Next JS Image. HEIGHT and WIDTH need to be replaced manually.
Text to replace

Regex to use in the Search field. Group 1 is the title
, and group 2 is the src
.
!\[(.*)\]\(/public(.*)\)
Regex to use in the replace field
<Image
alt={`$1`}
src={`$2`}
width={WIDTH}
height={HEIGHT}
/>