« Return to Thread: Delimiter matching: # inside string not surrounding with #{}

Re: Delimiter matching: # inside string not surrounding with #{}

by Chris Kutler :: Rate this Message:

Reply to Author | View in Thread

Thanks. I wasn't thinking straight. I was selecting "string" instead of string (and /abc/ instead of abc).

Anthony Richardson wrote:
That is the expected behaviour, if you want it to wrap any of the contents of the string you need to select the content and then press #.

On Wed, Oct 15, 2008 at 8:09 AM, Chris Kutler <Chris.Kutler@...> wrote:
Hello,

Tor wrote to me awhile back that I should document that ....

And if you press "#" inside a string or regular expression, it will surround the text with #{}.

I thought that he meant that if I clicked inside a string (such as "string") and pressed # I would get something like #{"string"}. Instead I get "str#{}ing".

Can someone better explain how to surround text with #{}


 « Return to Thread: Delimiter matching: # inside string not surrounding with #{}