Java Mailing List Archive

http://www.gg3721.com/

Home » user.groovy »

[groovy-user] lame regex question - escaping $

Corey

2008-08-01

Replies: Find Java Web Hosting

Author LoginPost Reply

What am I doing wrong?

groovy -e '"$" =~ /\$/'

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup
failed, script_from_command_line: 0: illegal string body character after
dollar sign;
 solution: either escape a literal dollar sign "\$5" or bracket the value
expression "${5}" @ line 0, column 0.
1 error




---------------------------------------------------------------------
To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email


©2008 gg3721.com - Jax Systems, LLC, U.S.A.