#!/bin/bashs="... So in the figure 3-12 we see ... similar to figure 3-1..."echo $s | sed -E 's#(figure +)([0-9-]+)#\1\\ref{fig:\2}#g'
Standard input is empty
... So in the figure \ref{fig:3-12} we see ... similar to figure \ref{fig:3-1}...
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!