<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://www.chinagroovy.org/groovywiki/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel>
        <title>Groovy文档翻译</title>
        <description></description>
        <link>http://www.chinagroovy.org/groovywiki/</link>
        <lastBuildDate>Thu, 21 Aug 2008 16:12:59 +0800</lastBuildDate>
        <generator>FeedCreator 1.7.2-ppt DokuWiki</generator>
        <image>
            <url>http://www.chinagroovy.org/groovywiki/lib/images/favicon.ico</url>
            <title>Groovy文档翻译</title>
            <link>http://www.chinagroovy.org/groovywiki/</link>
        </image>
        <item>
            <title>指南 5 - 捕捉正则表达式组</title>
            <link>http://www.chinagroovy.org/groovywiki/doku.php/wiki:getting_started_guide:tutorial_5?rev=1219033912&amp;do=diff</link>
            <description>捕捉组

 Groovy最有用的特征之一，就是使用正则表达式来从一个正则表达式中“捕捉”出数据的能力。假设我们想从下面的数据中提取出“Liverpool, England”的位置数据： 


locationData = &quot;Liverpool, England: 53° 25? 0? N 3° 0? 0?&quot;</description>
            <author>johnny</author>
            <category>wiki:getting_started_guide</category>
            <pubDate>Mon, 18 Aug 2008 12:31:52 +0800</pubDate>
        </item>
        <item>
            <title>Tutorial 6 - Groovy SQL - 创建</title>
            <link>http://www.chinagroovy.org/groovywiki/doku.php/wiki:getting_started_guide:tutorial_6?rev=1218858598&amp;do=diff</link>
            <description>Groovy SQL

 This section some content from this GroovySQL article, by Andrew Glover. If some of the references to JDBC don't make sense, don't worry. There is one new language construct that is used below, which is the inclusion of variables in string definitions. For example try the following:</description>
            <author>johnny</author>
            <category>wiki:getting_started_guide</category>
            <pubDate>Sat, 16 Aug 2008 11:49:58 +0800</pubDate>
        </item>
        <item>
            <title>指南 4 - 正规表达式基础</title>
            <link>http://www.chinagroovy.org/groovywiki/doku.php/wiki:getting_started_guide:tutorial_4?rev=1218777634&amp;do=diff</link>
            <description>正则表达式

 正则表达式是文本处理的瑞士军刀。它们给程序员提供了从字符串中匹配和提取模式的能力。正则表达式最简单的例子是一个由字母和数字组成的字符串。而包含正则表达式的最简单的表达式就是使用==~操作符。例如，匹配Dan Quayle的“potato”的拼写：</description>
            <author>johnny</author>
            <category>wiki:getting_started_guide</category>
            <pubDate>Fri, 15 Aug 2008 13:20:34 +0800</pubDate>
        </item>
        <item>
            <title>字符串2 - 已恢复为旧版</title>
            <link>http://www.chinagroovy.org/groovywiki/doku.php/test:groovy_test2?rev=1218635034&amp;do=diff</link>
            <description>斜杠字符串

还有一种不需要添加额外的反斜杠转义符的字符串表示方法，在表达正则表达式和windows文件/目录名时使用它会显得格外方便。 


def s = /.*foo.*/
def dirname  = /^.*\//
def basename = /[^\/]+$/</description>
            <author>Samson</author>
            <category>test</category>
            <pubDate>Wed, 13 Aug 2008 21:43:54 +0800</pubDate>
        </item>
        <item>
            <title>字符串 - 已恢复为旧版</title>
            <link>http://www.chinagroovy.org/groovywiki/doku.php/test:groovy_test1?rev=1218610499&amp;do=diff</link>
            <description>Groovy可以使用”和'来表示字符串。两者都可以使用，使含有引号的字符串的表示更为方便。 


println &quot;he said 'cheese' once&quot;
println 'he said &quot;cheese!&quot; again'


 Groovy的语法分析器支持\uab12这样的表示方法（也就是在\u后面加上4位16进制数字）。 这种表示方法可以被用在字符串内部或是程序的任何位置，就像Java的语言分析器所支持的一样。</description>
            <author>Samson</author>
            <category>test</category>
            <pubDate>Wed, 13 Aug 2008 14:54:59 +0800</pubDate>
        </item>
        <item>
            <title>Ant任务答疑</title>
            <link>http://www.chinagroovy.org/groovywiki/doku.php/wiki:advanced_usage_guide:ant_task_troubleshooting?rev=1218609570&amp;do=diff</link>
            <description>普遍问题

 经常，groovy或者groovyc任务会因为找不到GroovySourceAst类而抛出ClassNotFoundException，从而导致失败。

原因

 如果这是因为找不到除了GroovySourceAst以外的类而抛出ClassNotFoundException，从而导致失败的话，那么欢迎来到Ant的世界。就如Ant的外部任务的手册所说的：“不要添加任何东西到CLASSPATH环境变量——这常常就是导致非常费解的错误的原因。请使用Ant添加库的机制。”并…</description>
            <author>johnny</author>
            <category>wiki:advanced_usage_guide</category>
            <pubDate>Wed, 13 Aug 2008 14:39:30 +0800</pubDate>
        </item>
    </channel>
</rss>
