[EMAIL PROTECTED] wrote:
I have a field that looks like this:

'modprobe: modprobe: Can't locate module char-major-10-134'

I need to add a single quote so that it looks like this:

'modprobe: modprobe: Can''t locate module char-major-10-134'

But I have no idea how to go about doing that, can I get an example?

If you don't want to include the quotes at the start and end of the string, you can use:

  s/(?<=.)'(?=.)/''/gs

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to