Perl regex: indent/add words after matching keyword in a string? -


I am indenting text using a regex before and after a word in a string?

I have the following string

  This is some keyboard fill text   

and I want to convert it to:

  This is something & lt; * & Gt; KEYWORD & lt; * & Gt; Full text    

A literal interpretation will be:

  S / (KEYWORD) / & lt; * & Gt; $ 1 & lt; * & Gt; / G    

Comments

Popular posts from this blog

c# - passing input text from view to contoller with FacebookContext using Facebook app -

ios - Does Core Data autoupdate a many to many relationship on saving -

Calling a C++ function from C# by passing a string with variable size to it -