commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nestor Urquiza <nest...@yahoo.com>
Subject [jexl] How to escape the Apostrophe
Date Fri, 26 May 2006 12:49:23 GMT
Hello guys,
I need to have a string resulting from the expression 
"foo's brother" + " is bar"

However the software I am using is expecting the
concatenation to use single quotes like:

'foo's brother' + ' is bar'

Of course the above is invalid and I cannot come up
with a solution for escaping. I have tested:

'foo\'s brother' + ' is bar'
and
'foo\\'s brother' + ' is bar'

But they are invalid as well. Can I escape the
apostrophe?

What are the possible solutions for it?
Thanks! 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message