I want a dash to be added at the end and beginning of a string.
Example:
"chicken" -> "-chicken-"  
"nuggets" -> "-nuggets-"  
So I'm pretty much asking for Regexes.
I want a dash to be added at the end and beginning of a string.
Example:
"chicken" -> "-chicken-"  
"nuggets" -> "-nuggets-"  
So I'm pretty much asking for Regexes.
 
    
     
    
    You can use the following to match:
^|$
And replace with - (dash)
See DEMO
PS: Use it with m (multiline) flag.
