I have a series of files each of which starts with the sentence
create tablespace tablespace-name data.dbf
I need to extract the tablespace-name and substitute data.dbf to be tablespace-name.dbf.
I'm new to perl, but looks like what I need is look behind (or look ahead) regex within perl.
How can this be accomplished?
Technically, look-arounds and
\K
aren't needed here.They just make things less noisy.