Re: How to match when pattern contains @

2014-11-15 Thread Jon Kleiser
Hi Alex, Thanks for your reply. > On 14. nov. 2014, at 17.37, Alexander Burger wrote: > > Hi Jon, > >> Is it possible to write a 'match' expression that will recognize >> (Java) strings like these two? >> >> @foo("bar") >> whitespace@someother("text") > > Usually 'match' is not the optimal w

Re: How to match when pattern contains @

2014-11-14 Thread Alexander Burger
Hi Jon, > Is it possible to write a 'match' expression that will recognize > (Java) strings like these two? > > @foo("bar") > whitespace@someother("text") Usually 'match' is not the optimal way to operate on strings. What is the situation where you need this? If you parse this from a file or st

How to match when pattern contains @

2014-11-14 Thread Jon Kleiser
Hi, Is it possible to write a 'match' expression that will recognize (Java) strings like these two? @foo("bar") whitespace@someother("text") I don’t know how to escape the @ so that it will not be handled as a wildcard symbol. The "whitespace" in the second line doesn’t necessarily have to be