Keyword string { #### Keyword 1_string { #### Keyword string { Keyword string { Keyword string { Keyword string { #string could also be in double quotes Keyword "string" { #### foreach (<>) { s/Keyword\s+\"*([\S"]+)\s+/Keyword 1_$1 /; print; }