<?xml version="1.0" encoding="UTF-8"?>
<rxm:regexmagic xmlns:rxm="http://www.regexmagic.com/regexmagic20.xsd" version="2.0">
	<library>
		<formula>
			<description>操作:捕获组&#13;&#10;此示例显示如何使用捕获组找出正则表达式的哪个部分找到匹配.&#13;&#10;有关分步说明,请单击RegexMagic帮助文件中的内容列表中的示例,操作,捕获组.</description>
			<samples>
				<sample name="Joe 42">
					<string><![CDATA[My favorite number is 42.
You can email me at joe@fortytwo.com.
Other nice numbers are 17, 382, and 794.
joefortytwo@gmail.com is my alternative email address.
]]></string>
					<field/>
					<field>
						<pos start="22" stop="24"/>
					</field>
					<field>
						<pos start="47" stop="63"/>
					</field>
					<field/>
				</sample>
			</samples>
			<match validation="average">
				<field kind="alternation">
					<fields>
						<field>
							<integer>
								<format>dec</format>
							</integer>
						</field>
						<field>
							<email/>
						</field>
					</fields>
				</field>
			</match>
			<action>
				<captures>
					<capture name="number" field="1"/>
					<capture name="email" field="2"/>
				</captures>
			</action>
		</formula>
		<formula>
			<description>操作:替换字段&#13;&#10;此示例显示如何使用“操作”面板将字段替换为其他字段来交换部分正则表达式匹配.&#13;&#10;有关分步说明,请单击RegexMagic帮助文件中的内容列表中的示例,操作,替换字段.</description>
			<samples>
				<sample name="3 numbers">
					<string><![CDATA[12.374,-17.872,519.878]]></string>
					<field>
						<pos start="0" stop="6"/>
					</field>
					<field>
						<pos start="6" stop="7"/>
					</field>
					<field>
						<pos start="7" stop="14"/>
					</field>
					<field>
						<pos start="14" stop="15"/>
					</field>
					<field>
						<pos start="15" stop="22"/>
					</field>
				</sample>
			</samples>
			<match start="line" stop="line" validation="average">
				<field>
					<number useminmax="1" min="-999" max="999" signplus="1" signminus="1" mindecimals="3" maxdecimals="3" integerrequired="1" decimalseparator="period"/>
				</field>
				<field>
					<literal>
						<literal>,</literal>
					</literal>
				</field>
				<field>
					<same otherfield="0"/>
				</field>
				<field>
					<literal>
						<literal>,</literal>
					</literal>
				</field>
				<field>
					<same otherfield="0"/>
				</field>
			</match>
			<action kind="replace all fields">
				<replacements>
					<replacement oldfield="0" kind="field" newfield="4"/>
					<replacement oldfield="1"/>
					<replacement oldfield="2"/>
					<replacement oldfield="4" kind="field"/>
					<replacement oldfield="3"/>
				</replacements>
			</action>
		</formula>
		<formula>
			<description>操作:替换文本&#13;&#10;此示例显示如何键入自己的替换文本,而不是让RegexMagic生成一个.&#13;&#10;有关分步说明,请单击RegexMagic帮助文件中的内容列表中的示例,操作,替换文本.</description>
			<samples>
				<sample name="3 numbers">
					<string><![CDATA[12.374,-17.872,519.878]]></string>
					<field>
						<pos start="0" stop="6"/>
					</field>
					<field>
						<pos start="6" stop="7"/>
					</field>
					<field>
						<pos start="7" stop="14"/>
					</field>
					<field>
						<pos start="14" stop="15"/>
					</field>
					<field>
						<pos start="15" stop="22"/>
					</field>
				</sample>
			</samples>
			<match start="line" stop="line" validation="average">
				<field>
					<number useminmax="1" min="-999" max="999" signplus="1" signminus="1" mindecimals="3" maxdecimals="3" integerrequired="1" decimalseparator="period"/>
				</field>
				<field>
					<literal>
						<literal>,</literal>
					</literal>
				</field>
				<field>
					<same otherfield="0"/>
				</field>
				<field>
					<literal>
						<literal>,</literal>
					</literal>
				</field>
				<field>
					<same otherfield="0"/>
				</field>
			</match>
			<action kind="replace match">
				<captures>
					<capture name="forcedname3"/>
					<capture name="forcedname2" field="2"/>
					<capture name="forcedname1" field="4"/>
				</captures>
				<replacements>
					<replacement kind="replacetext" text="$3,$2,$1" flavor="jgsoft"/>
				</replacements>
			</action>
		</formula>
		<formula>
			<description>字段:交替序列&#13;&#10;此示例显示如何使用交替字段与序列字段使正则表达式匹配文本的不相关位与文本的每个位需要多个RegexMagic模式.&#13;&#10;有关分步说明,请单击RegexMagic帮助文件中的内容列表中的示例,字段,序列字段的交替.</description>
			<samples>
				<sample name="Joe 42">
					<string><![CDATA[My favorite number is 42.
You can email me at joe@fortytwo.com.
Other nice numbers are 17, 382, and 794.
joefortytwo@gmail.com is my alternative email address.
]]></string>
					<field/>
					<field/>
					<field>
						<pos start="22" stop="23"/>
					</field>
					<field>
						<pos start="23" stop="25"/>
					</field>
					<field>
						<pos start="25" stop="26"/>
					</field>
					<field/>
					<field>
						<pos start="49" stop="50"/>
					</field>
					<field>
						<pos start="50" stop="66"/>
					</field>
					<field>
						<pos start="66" stop="67"/>
					</field>
					<field/>
					<field/>
				</sample>
			</samples>
			<match validation="average">
				<field kind="alternation">
					<fields>
						<field kind="sequence">
							<fields>
								<field>
									<literal>
										<literal>[</literal>
									</literal>
								</field>
								<field>
									<integer>
										<format>dec</format>
									</integer>
								</field>
								<field>
									<literal>
										<literal>]</literal>
									</literal>
								</field>
							</fields>
						</field>
						<field kind="sequence">
							<fields>
								<field>
									<literal>
										<literal>&lt;</literal>
									</literal>
								</field>
								<field>
									<email/>
								</field>
								<field>
									<literal>
										<literal>></literal>
									</literal>
								</field>
							</fields>
						</field>
					</fields>
				</field>
			</match>
			<action/>
		</formula>
		<formula>
			<description>字段:交替单&#13;&#10;此示例显示如何使用交替字段使正则表达式匹配文本的无关位.&#13;&#10;有关分步说明,请单击RegexMagic帮助文件中的内容列表中的示例,字段,交替字段.</description>
			<samples>
				<sample name="Joe 42">
					<string><![CDATA[My favorite number is 42.
You can email me at joe@fortytwo.com.
Other nice numbers are 17, 382, and 794.
joefortytwo@gmail.com is my alternative email address.
]]></string>
					<field/>
					<field>
						<pos start="22" stop="24"/>
					</field>
					<field>
						<pos start="47" stop="63"/>
					</field>
					<field/>
				</sample>
			</samples>
			<match validation="average">
				<field kind="alternation">
					<fields>
						<field>
							<integer>
								<format>dec</format>
							</integer>
						</field>
						<field>
							<email/>
						</field>
					</fields>
				</field>
			</match>
			<action/>
		</formula>
		<formula>
			<description>字段:多字段&#13;&#10;此示例显示了如何通过使用多个字段创建正则表达式来轻松生成正则表达式来处理各种(奇怪)标识代码.&#13;&#10;有关分步说明,请单击RegexMagic帮助文件中的内容列表中的示例,字段,多个字段.</description>
			<samples scope="line">
				<sample name="SKU codes">
					<string><![CDATA[018719ACME/WMD001080165
028912MS/WIN95082495
032789JGSOFT/EPP6070106]]></string>
					<field/>
					<field/>
					<field>
						<pos start="10" stop="11"/>
					</field>
				</sample>
			</samples>
			<match start="subject" stop="subject" validation="average">
				<field minrepeat="6">
					<charsbasic digits="1"/>
				</field>
				<field maxrepeat="16">
					<charsbasic lettersupper="1"/>
				</field>
				<field>
					<literal>
						<literal>/</literal>
					</literal>
				</field>
				<field maxrepeat="16">
					<charsbasic lettersupper="1" digits="1"/>
				</field>
				<field>
					<datetime dateseparators="/-." timeseparators=":." ampm="AM;PM" months="Jan,January;Feb,February;Mar,March;Apr,April;May,May;Jun,June;Jul,July;Aug,August;Sep,September;Oct,October;Nov,November;Dec,December;" days="Sun,Sunday;Mon,Monday;Tue,Tuesday;Wed,Wednesday;Thu,Thursday;Fri,Friday;Sat,Saturday;" leadingzeros="always">
						<format>mdy</format>
					</datetime>
				</field>
			</match>
			<action/>
		</formula>
		<formula>
			<description>字段:序列&#13;&#10;此示例显示如何使用序列字段重复正则表达式的(复杂)部分.&#13;&#10;有关分步说明,请单击RegexMagic帮助文件中的内容列表中的示例,字段,序列字段.</description>
			<samples scope="line">
				<sample name="Code">
					<string><![CDATA[<127:7898:1983>
<1234:789:18988:33891:9819>
<333:4444:55555:67301:1289:1081>
]]></string>
					<field>
						<pos start="0" stop="1"/>
					</field>
					<field>
						<pos start="1" stop="4"/>
					</field>
					<field/>
					<field>
						<pos start="4" stop="5"/>
					</field>
					<field/>
					<field/>
					<field/>
				</sample>
			</samples>
			<match validation="strict">
				<field>
					<literal>
						<literal>&lt;</literal>
					</literal>
				</field>
				<field>
					<integer>
						<format>dec</format>
					</integer>
				</field>
				<field kind="sequence" minrepeat="2" maxrepeat="5">
					<fields>
						<field>
							<literal>
								<literal>:</literal>
							</literal>
						</field>
						<field>
							<same otherfield="1"/>
						</field>
					</fields>
				</field>
				<field>
					<literal>
						<literal>></literal>
					</literal>
				</field>
			</match>
			<action/>
		</formula>
		<formula>
			<description>模式:任何(下一个字段的第一个字符)&#13;&#10;此示例显示如何使用“任何”模式使字段匹配未指定的文本.&#13;&#10;有关分步说明,请单击RegexMagic帮助文件中的内容列表中的示例,模式,任何内容.</description>
			<samples>
				<sample name="Sample 1">
					<string><![CDATA[This is some <b>bold</b> text.
This one <b>also</b>.
<b>Whatever</b>.
Mixing <b>bold and <i>italic</i></b> together.]]></string>
					<field>
						<pos start="13" stop="16"/>
					</field>
					<field>
						<pos start="16" stop="20"/>
					</field>
					<field>
						<pos start="20" stop="24"/>
					</field>
				</sample>
			</samples>
			<match validation="average">
				<field>
					<literal caseless="1">
						<literal>&lt;b></literal>
					</literal>
				</field>
				<field maxrepeat="unlimited">
					<anything kind="no first char"/>
				</field>
				<field>
					<literal caseless="1">
						<literal>&lt;/b></literal>
					</literal>
				</field>
			</match>
			<action/>
		</formula>
		<formula>
			<description>模式:任何(与下一个字段匹配的文本)&#13;&#10;此示例显示如何使用“任何”模式使字段匹配未指定的文本.&#13;&#10;有关分步说明,请单击RegexMagic帮助文件中的内容列表中的示例,模式,任何内容.</description>
			<samples>
				<sample name="Sample 1">
					<string><![CDATA[This is some <b>bold</b> text.
This one <b>also</b>.
<b>Whatever</b>.
Mixing <b>bold and <i>italic</i></b> together.]]></string>
					<field>
						<pos start="13" stop="16"/>
					</field>
					<field>
						<pos start="16" stop="20"/>
					</field>
					<field>
						<pos start="20" stop="24"/>
					</field>
				</sample>
			</samples>
			<match validation="average">
				<field>
					<literal caseless="1">
						<literal>&lt;b></literal>
					</literal>
				</field>
				<field maxrepeat="unlimited" quantifier="lazy">
					<anything kind="no field"/>
				</field>
				<field>
					<literal caseless="1">
						<literal>&lt;/b></literal>
					</literal>
				</field>
			</match>
			<action/>
		</formula>
		<formula>
			<description>模式:基本字符&#13;&#10;此示例显示如何使用“基本字符”模式匹配简单的编程语言标识符.&#13;&#10;有关分步说明,请单击RegexMagic帮助文件中的内容列表中的示例,模式,基本字符.</description>
			<samples>
				<sample name="Sample 1">
					<string><![CDATA[$first_and_second = $first + $second]]></string>
				</sample>
			</samples>
			<match validation="average">
				<field maxrepeat="unlimited">
					<charsbasic characters="$_" lettersupper="1" letterslower="1" digits="1"/>
				</field>
			</match>
			<action/>
		</formula>
		<formula>
			<description>模式:字符掩码&#13;&#10;此示例显示如何使用“字符掩码”模式匹配假设的SKU代码.&#13;&#10;有关分步说明,请单击RegexMagic帮助文件中的内容列表中的示例,模式,字符掩码.</description>
			<samples>
				<sample name="Sample 1">
					<string><![CDATA[JGSOFT-001]]></string>
				</sample>
			</samples>
			<match start="subject" stop="subject" validation="average">
				<field>
					<masks>
						<mask>LLLLLL-999</mask>
					</masks>
				</field>
			</match>
			<action/>
		</formula>
		<formula>
			<description>模式:控制字符&#13;&#10;此示例显示如何使用“控制字符”模式匹配特定的ASCII控制字符.&#13;&#10;有关分步说明,请单击RegexMagic帮助文件中的内容列表中的示例,模式,控制字符.</description>
			<samples>
				<sample name="Control characters">
					<text format="bytes">QVNDSUkgY29udHJvbCBjaGFyYWN0ZXJzOgABAgMEBQYHCAkKCwwNDg8QERITFBUWFxgZGhscHR4f</text>
					<field>
						<pos start="34" stop="35"/>
						<pos start="36" stop="37"/>
					</field>
				</sample>
			</samples>
			<match validation="strict">
				<field>
					<controlchars>090B</controlchars>
				</field>
			</match>
			<action/>
		</formula>
		<formula>
			<description>模式:国家&#13;&#10;此示例说明如何使用“国家/地区”模式匹配特定国家/地区的国家/地区代码.&#13;&#10;有关分步说明,请点击RegexMagic帮助文件中的内容列表中的例子,样式,国家.</description>
			<samples scope="line">
				<sample name="Countries">
					<string><![CDATA[US
CA
GB
DE
FR]]></string>
					<field>
						<pos start="8" stop="10"/>
					</field>
				</sample>
			</samples>
			<match validation="average">
				<field>
					<country twoletter="1">ATBEBGCYCZDEDKEEESFIFRGBGRHRHUIEITLTLULVMTNLPLPTROSESISK</country>
				</field>
			</match>
			<action/>
		</formula>
		<formula>
			<description>模式:国家(备选)&#13;&#10;显示如何使用替换来匹配标准国家/地区名称以及您自己的替代国家/地区名称.&#13;&#10;有关分步说明,请点击RegexMagic帮助文件中的内容列表中的例子,样式,国家.</description>
			<samples scope="line">
				<sample name="Countries">
					<string><![CDATA[USA
UNITED STATES
UNITED STATES OF AMERICA]]></string>
				</sample>
			</samples>
			<match start="subject" stop="subject" validation="average">
				<field kind="alternation">
					<fields>
						<field>
							<country english="1" french="1" suffixoptional="1"/>
						</field>
						<field>
							<values>
								<value>USA</value>
								<value>UNITED STATES OF AMERICA</value>
							</values>
						</field>
					</fields>
				</field>
			</match>
			<action/>
		</formula>
		<formula>
			<description>模式:信用卡号码&#13;&#10;此示例显示如何使用“信用卡号码”模式匹配信用卡号码.&#13;&#10;有关分步说明,请单击RegexMagic帮助文件中的内容列表中的示例,模式,信用卡号.</description>
			<samples>
				<sample name="Credit card numbers">
					<string><![CDATA[Visa
4123456789012
4123456789012345

412345678901
41234567890123
412345678901234
41234567890123456

MasterCard
5123456789012345

512345678901234
51234567890123455

Discover
6011123456789012
6512345678901234

601112345678901
60111234567890123

American Express
341234567890123
371234567890123

34123456789012
301234567890123
3712345678901234

Diner's Club
30012345678901
30512345678901
36012345678901
36912345678901
38012345678901
38912345678901

30612345678901
37012345678901

JCB
213112345678901
180012345678901
3512345678901234

21311234567890
18001234567890
2131123456789012
1800123456789012
35123456789012

Random
123456789012345
]]></string>
				</sample>
			</samples>
			<match validation="average">
				<field>
					<creditcard visa="1" mastercard="1" amex="1" diners="1" discover="1" jcb="1"/>
				</field>
			</match>
			<action/>
		</formula>
		<formula>
			<description>模式:货币</description>
			<samples scope="line">
				<sample name="Currencies">
					<string><![CDATA[USD
CAD
EUR
GBP]]></string>
					<field>
						<pos start="10" stop="13"/>
						<pos start="15" stop="18"/>
					</field>
					<field/>
				</sample>
			</samples>
			<match validation="average">
				<field>
					<currency>EURGBP</currency>
				</field>
			</match>
			<action/>
		</formula>
		<formula>
			<description>模式:日期和时间&#13;&#10;此示例显示如何使用“日期和时间”模式匹配不同格式的日期.&#13;&#10;有关分步说明,请单击RegexMagic帮助文件中的内容列表中的示例,模式,日期和时间.</description>
			<samples>
				<sample name="Today">
					<string><![CDATA[8 June 2009
2009-06-08]]></string>
				</sample>
			</samples>
			<match start="word" stop="word" validation="average">
				<field>
					<datetime dateseparators="/-." timeseparators=":." ampm="AM;PM" months="Jan,January;Feb,February;Mar,March;Apr,April;May,May;Jun,June;Jul,July;Aug,August;Sep,September;Oct,October;Nov,November;Dec,December;" days="Sun,Sunday;Mon,Monday;Tue,Tuesday;Wed,Wednesday;Thu,Thursday;Fri,Friday;Sat,Saturday;" leadingzeros="optional">
						<format>d M Y</format>
						<format>Y/m/d</format>
					</datetime>
				</field>
			</match>
			<action/>
		</formula>
		<formula>
			<description>模式:电子邮件(任何)&#13;&#10;此示例显示如何使用“电子邮件”模式匹配任何电子邮件地址.&#13;&#10;有关分步说明,请单击RegexMagic的帮助文件中的内容列表中的示例,模式,电子邮件.</description>
			<samples>
				<sample name="Email">
					<string><![CDATA[support@regexmagic.com
sales@regexmagic.com]]></string>
				</sample>
			</samples>
			<match start="word" stop="word" validation="average">
				<field>
					<email/>
				</field>
			</match>
			<action/>
		</formula>
		<formula>
			<description>模式:电子邮件(特定)&#13;&#10;此示例显示如何使用“电子邮件”模式匹配特定的电子邮件地址.&#13;&#10;有关分步说明,请单击RegexMagic的帮助文件中的内容列表中的示例,模式,电子邮件.</description>
			<samples>
				<sample name="Email">
					<string><![CDATA[support@regexmagic.com
sales@regexmagic.com]]></string>
				</sample>
			</samples>
			<match start="word" stop="word" validation="average">
				<field>
					<email username="list" domain="list tld">
						<username>support</username>
						<domain>com</domain>
					</email>
				</field>
			</match>
			<action/>
		</formula>
		<formula>
			<description>模式:GUID&#13;&#10;此示例显示如何使用“GUID”模式验证GUID.&#13;&#10;有关分步说明,请单击RegexMagic帮助文件中的内容列表中的示例,模式,GUID.</description>
			<samples scope="line">
				<sample name="Pattern: GUID">
					<string><![CDATA[{D1A5279D-B27D-4CD4-A05E-EFDD53D08E8D}
{594ABD08-C02C-4827-8ABF-A128006848A3}
{B59511BD6A5F4DF09ECF562A108D8A2E}
69593D62-71EA-4548-85E4-04FC71357423
677E2553DD4D43B09DA77414DB1EB8EA

{99367d71-08ad-4aec-8e73-55ae151614f9}
{5ba3bba3-729a-4717-88c1-b7c4b7ba80db}
{7e9081b59a6d4cc1a8c347f69fb4198d}
0c74f13f-fa83-4c48-9b33-68921dd72463
b4b2fb69c6244e5eb0698e0c6ec66618

DE011585-7317-4C0D-A9AF-0AF2C5E61DB8}
{E8038A99-A409-490B-B11A-159A3496426D
{D44EF4F4-280B47E5-91C7-261222A59621}
{5EDEB36C-9006-467A8D04-AFB6F62CD7D2}
{D995AC86-5697-4683-A34F2B778BD837ED}
{283B67B2-430F-4E6F-97E6-19041992-C1B0}
2F2B15A5-2615-4748-BDABA124210F15EC
07D267AB-7126-45EB8FFC-51994D05F0B2]]></string>
					<field>
						<pos start="0" stop="38"/>
						<pos start="190" stop="228"/>
					</field>
					<field/>
				</sample>
			</samples>
			<match start="subject" stop="subject" validation="strict">
				<field>
					<guid/>
				</field>
			</match>
			<action/>
		</formula>
		<formula>
			<description>模式:整数(匹配)&#13;&#10;此示例显示如何使用“整数”模式匹配128到255之间的小数或十六进制整数.&#13;&#10;有关分步说明,请单击RegexMagic帮助文件中的内容列表中的示例,模式,整数.</description>
			<samples>
				<sample name="Integers">
					<string><![CDATA[128 + 0x80 = 256;
90 + 0x90 = 0xB4;
200 + 0x200 = 712;
]]></string>
				</sample>
			</samples>
			<match start="word" stop="word" validation="strict">
				<field>
					<integer useranges="1">
						<format>dec</format>
						<format>hex 0x</format>
						<ranges>128..255</ranges>
					</integer>
				</field>
			</match>
			<action/>
		</formula>
		<formula>
			<description>模式:整数(样本)&#13;&#10;此示例显示如何使用“整数”模式匹配42和2552之间的十进制整数.&#13;&#10;有关分步说明,请单击RegexMagic帮助文件中的内容列表中的Examples,Patterns,Integer.</description>
			<samples scope="line">
				<sample name="Sample 1">
					<string><![CDATA[1
16
42
174
2552
8088
80386]]></string>
					<field>
						<pos start="7" stop="9"/>
						<pos start="16" stop="20"/>
					</field>
				</sample>
			</samples>
			<match start="word" stop="word" validation="strict">
				<field>
					<integer useranges="1">
						<format>dec</format>
						<ranges>42..2552</ranges>
					</integer>
				</field>
			</match>
			<action/>
		</formula>
		<formula>
			<description>模式:IPv4地址&#13;&#10;此示例显示如何使用“IPv4地址”模式来匹配一系列IPv4地址.&#13;&#10;有关分步说明,请单击RegexMagic帮助文件中的内容列表中的示例,模式,IPv4地址.</description>
			<samples scope="line">
				<sample name="IPv4 addresses">
					<string><![CDATA[10.1.1.1
10.255.255.254
172.0.0.1
172.16.0.1
172.31.255.254
172.255.255.254
192.168.1.1
192.168.255.254
63.212.171.1
63.212.171.254
8.8.8.8
8.8.4.4
]]></string>
					<field/>
					<field/>
				</sample>
			</samples>
			<match start="subject" stop="subject" validation="strict">
				<field>
					<ipv4 useranges="1">
						<notation>dotted</notation>
						<ranges>63.212.171.1..63.212.171.254</ranges>
					</ipv4>
				</field>
			</match>
			<action/>
		</formula>
		<formula>
			<description>模式:IPv4地址(私人)&#13;&#10;此示例显示如何使用“IPv4地址”模式匹配私有IPv4地址.&#13;&#10;有关分步说明,请单击RegexMagic帮助文件中的内容列表中的示例,模式,IPv4地址.</description>
			<samples scope="line">
				<sample name="IPv4 addresses">
					<string><![CDATA[10.1.1.1
10.255.255.254
172.0.0.1
172.16.0.1
172.31.255.254
172.255.255.254
192.168.1.1
192.168.255.254
63.212.171.1
63.212.171.254
8.8.8.8
8.8.4.4
]]></string>
					<field/>
					<field/>
				</sample>
			</samples>
			<match start="subject" stop="subject" validation="strict">
				<field>
					<ipv4 useranges="1">
						<notation>dotted</notation>
						<ranges>10.0.0.0/8;172.16.0.0/12;192.168.0.0/16</ranges>
					</ipv4>
				</field>
			</match>
			<action/>
		</formula>
		<formula>
			<description>模式:文本文本列表&#13;&#10;此示例显示如何使用“文本文本列表”模式匹配三个名称之一.&#13;&#10;有关分步说明,请在RegexMagic的帮助文件中的内容列表中单击示例,模式,文本文本列表.</description>
			<samples>
				<sample name="Sample 1">
					<string><![CDATA[Mary, Sue, and Betty had a little lamb.]]></string>
				</sample>
			</samples>
			<match start="word" stop="word" validation="average">
				<field>
					<values>
						<value>Mary</value>
						<value>Sue</value>
						<value>Betty</value>
					</values>
				</field>
			</match>
			<action/>
		</formula>
		<formula>
			<description>模式:文字字节&#13;&#10;此示例显示如何使用“文字字节”模式匹配特定的字节序列.&#13;&#10;有关分步说明,请在RegexMagic的帮助文件中的内容列表中单击示例,模式,字面字节.</description>
			<samples>
				<sample name="Pattern: literal bytes">
					<text format="bytes">ABAqO0xdbn+K/wAQKn+K/w</text>
					<field>
						<pos start="0" stop="10"/>
					</field>
				</sample>
			</samples>
			<match validation="strict">
				<field>
					<bytes>
						<bytes>00102A3B4C5D6E7F8AFF</bytes>
					</bytes>
				</field>
			</match>
			<action/>
		</formula>
		<formula>
			<description>模式:文字文本&#13;&#10;此示例显示如何使用“文字文本”模式匹配文本* great *(包括星号).&#13;&#10;有关分步说明,请单击RegexMagic帮助文件中的内容列表中的示例,模式,文字文本.</description>
			<samples>
				<sample name="Sample 1">
					<string><![CDATA[RegexMagic is a *great* tool for creating regexes!]]></string>
				</sample>
			</samples>
			<match validation="average">
				<field>
					<literal>
						<literal>*great*</literal>
					</literal>
				</field>
			</match>
			<action/>
		</formula>
		<formula>
			<description>模式:国家ID(具体)&#13;&#10;此示例显示如何使用“国家ID”模式匹配美国社会保障号.&#13;&#10;有关分步说明,请单击RegexMagic帮助文件中的内容列表中的示例,模式,国家ID.</description>
			<samples>
				<sample name="Social security numbers">
					<string><![CDATA[Valid:
123-12-1234
078-05-1120

Invalid:
123121234
1234-12-1234
000-00-0000]]></string>
				</sample>
			</samples>
			<match validation="strict">
				<field>
					<nationalid id="USssn"/>
				</field>
			</match>
			<action/>
		</formula>
		<formula>
			<description>样式:数字(基本)&#13;&#10;此示例显示如何使用“数字”模式匹配pH值.&#13;&#10;有关分步说明,请单击RegexMagic帮助文件中的内容列表中的例子,样式,数字.</description>
			<samples scope="line">
				<sample name="pH values">
					<string><![CDATA[Valid pH values:
1
1.0
2.9
4
7.2
10.4
14
14.0
Invalid pH values:
-7.2
-4
.8
0.9
14.1
15.1
]]></string>
				</sample>
			</samples>
			<match start="subject" stop="subject" validation="strict">
				<field>
					<number useminmax="1" min="1" max="14" maxdecimals="1" integerrequired="1" decimalseparator="period"/>
				</field>
			</match>
			<action/>
		</formula>
		<formula>
			<description>样式:数字(改进)&#13;&#10;此示例显示如何使用“数字”模式与“文字文本”模式交替以更准确地匹配pH值.&#13;&#10;有关分步说明,请单击RegexMagic帮助文件中的内容列表中的例子,样式,数字.</description>
			<samples scope="line">
				<sample name="pH values">
					<string><![CDATA[Valid pH values:
1
1.0
2.9
4
7.2
10.4
14
14.0
Invalid pH values:
-7.2
-4
.8
0.9
14.1
15.1
]]></string>
				</sample>
			</samples>
			<match start="subject" stop="subject" validation="strict">
				<field kind="alternation">
					<fields>
						<field>
							<number useminmax="1" min="1" max="13" maxdecimals="1" integerrequired="1" decimalseparator="period"/>
						</field>
						<field>
							<literal>
								<literal>14</literal>
							</literal>
						</field>
						<field>
							<literal>
								<literal>14.0</literal>
							</literal>
						</field>
					</fields>
				</field>
			</match>
			<action/>
		</formula>
		<formula>
			<description>模式:由另一个字段使用的模式&#13;&#10;此示例显示如何使用“由另一个字段使用的模式”模式来保存您必须为多个字段指定相同的模式.&#13;&#10;有关分步说明,请在RegexMagic的帮助文件中的内容列表中单击其他字段使用的示例,模式,模式.</description>
			<samples>
				<sample name="3 numbers">
					<string><![CDATA[12.374,-17.872,519.878]]></string>
					<field>
						<pos start="0" stop="6"/>
					</field>
					<field>
						<pos start="6" stop="7"/>
					</field>
					<field>
						<pos start="7" stop="14"/>
					</field>
					<field>
						<pos start="14" stop="15"/>
					</field>
					<field>
						<pos start="15" stop="22"/>
					</field>
				</sample>
			</samples>
			<match start="line" stop="line" validation="average">
				<field>
					<number useminmax="1" min="-999" max="999" signplus="1" signminus="1" mindecimals="3" maxdecimals="3" integerrequired="1" decimalseparator="period"/>
				</field>
				<field>
					<literal>
						<literal>,</literal>
					</literal>
				</field>
				<field>
					<same otherfield="0"/>
				</field>
				<field>
					<literal>
						<literal>,</literal>
					</literal>
				</field>
				<field>
					<same otherfield="0"/>
				</field>
			</match>
			<action/>
		</formula>
		<formula>
			<description>模式:正则表达式&#13;&#10;此示例显示如何使用“正则表达式”模式将正则表达式从一个flavor转换为另一个.&#13;&#10;有关分步说明,请单击RegexMagic帮助文件中的内容列表中的示例,模式,正则表达式.</description>
			<samples>
				<sample name="Sample 1">
					<string><![CDATA[I love regex
You love regexp
He loves regular expression
We love regular expressions
They love regexes]]></string>
				</sample>
			</samples>
			<match validation="average">
				<field>
					<regex flavor="gnubre" caseless="1">\(\(I\|you\|we\|they\)\s\+love\|s\?he\s\+loves\)\s*reg\(ular expressions\?\|ex\(p\|es\)\?\)</regex>
				</field>
			</match>
			<action/>
		</formula>
		<formula>
			<description>模式:州或省&#13;&#10;此示例显示如何使用“州或省”模式匹配美国各州及其缩写.&#13;&#10;有关分步说明,请单击RegexMagic帮助文件中的内容列表中的示例,模式,州或省.</description>
			<samples scope="line">
				<sample name="States">
					<string><![CDATA[Alabama
AL
Alberta
AB]]></string>
					<field>
						<pos start="0" stop="7"/>
						<pos start="9" stop="11"/>
					</field>
					<field/>
				</sample>
			</samples>
			<match start="subject" stop="subject" validation="average">
				<field>
					<state names="optional">
						<countries>US</countries>
						<states>US-AK;US-AL;US-AR;US-AZ;US-CA;US-CO;US-CT;US-DC;US-DE;US-FL;US-GA;US-HI;US-IA;US-ID;US-IL;US-IN;US-KS;US-KY;US-LA;US-MA;US-MD;US-ME;US-MI;US-MN;US-MO;US-MS;US-MT;US-NC;US-ND;US-NE;US-NH;US-NJ;US-NM;US-NV;US-NY;US-OH;US-OK;US-OR;US-PA;US-RI;US-SC;US-SD;US-TN;US-TX;US-UT;US-VA;US-VT;US-WA;US-WI;US-WV;US-WY;</states>
					</state>
				</field>
			</match>
			<action/>
		</formula>
		<formula>
			<description>模式:由另一个字段匹配的文本&#13;&#10;此示例显示如何使用“由其他字段匹配的文本”模式,使多个字段匹配完全相同的文本.&#13;&#10;有关逐步说明,请单击RegexMagic帮助文件中的内容列表中的示例,模式,其他字段匹配的文本.</description>
			<samples>
				<sample name="3 numbers">
					<string><![CDATA[12.374,12.374,12.374
-17.872,-17.872,-17.872
519.878,519.878,519.878
12.374,-17.872,519.878]]></string>
					<field>
						<pos start="0" stop="6"/>
					</field>
					<field>
						<pos start="6" stop="7"/>
					</field>
					<field>
						<pos start="7" stop="13"/>
					</field>
					<field>
						<pos start="13" stop="14"/>
					</field>
					<field>
						<pos start="14" stop="20"/>
					</field>
				</sample>
			</samples>
			<match start="line" stop="line" validation="average">
				<field>
					<number useminmax="1" min="-999" max="999" signplus="1" signminus="1" mindecimals="3" maxdecimals="3" integerrequired="1" decimalseparator="period"/>
				</field>
				<field>
					<literal>
						<literal>,</literal>
					</literal>
				</field>
				<field>
					<backref otherfield="0"/>
				</field>
				<field>
					<literal>
						<literal>,</literal>
					</literal>
				</field>
				<field>
					<backref otherfield="0"/>
				</field>
			</match>
			<action/>
		</formula>
		<formula>
			<description>模式:Unicode字符&#13;&#10;此示例显示如何使用“Unicode字符”模式匹配货币符号.&#13;&#10;有关分步说明,请单击RegexMagic帮助文件中的内容列表中的示例,模式,Unicode字符.</description>
			<samples>
				<sample name="Sample 1">
					<string><![CDATA[Some of the world's major currency symbols are $, €, ¥, and £.]]></string>
				</sample>
			</samples>
			<match validation="average">
				<field>
					<charsunicode>
						<category>Sc</category>
					</charsunicode>
				</field>
			</match>
			<action/>
		</formula>
		<formula>
			<description>模式:URL&#13;&#10;此示例说明如何使用“网址”模式来匹配网址.&#13;&#10;有关分步说明,请单击RegexMagic帮助文件中的内容列表中的示例,模式,URL.</description>
			<samples>
				<sample name="URLs">
					<string><![CDATA[regexmagic.com
www.regexmagic.com
http://regexmagic.com
http://www.regexmagic.com
http://www.regexmagic.com/
http://www.regexmagic.com/index.html
http://www.regexmagic.com/index.html?source=library
support@regexmagic.com]]></string>
				</sample>
			</samples>
			<match validation="average">
				<field>
					<url schemes="http;https" port="optional" folder="safe" foldermax="9" filename="safe" filenameoption="1" parameter="safe"/>
				</field>
			</match>
			<action/>
		</formula>
		<formula>
			<description>模式:增值税号&#13;&#10;此示例显示如何使用“增值税号”模式匹配比荷卢经济国家的增值税号.&#13;&#10;有关分步说明,请点击RegexMagic帮助文件中的内容列表中的示例,模式,增值税号.</description>
			<samples>
				<sample name="EU VAT numbers">
					<string><![CDATA[ATU12345678
BE123456789
BE0123456789
BG123456789
BG0123456789
CY12345678L
CZ12345678
CZ123456789
CZ1234567890
DE123456789
DK12345678
EE123456789
GR123456789
EL123456789
ES012345678
ESX1234567Y
FI12345678
FR12123456789
FRAB123456789
GB123456789123
GB123456789AB1
HU12345678
IE1S12345L
IT12345678901
LU12345678
LT123456789
LT123456789012
LV12345678901
MT12345678
NL123456789B01
PL1234567890
PT123456789
RO12345678
RO123456789
RO1234567890
SE123456789012
SI12345678
SK1234567890
]]></string>
				</sample>
			</samples>
			<match validation="strict">
				<field>
					<vat countrycode="always">
						<country>BE</country>
						<country>LU</country>
						<country>NL</country>
					</vat>
				</field>
			</match>
			<action/>
		</formula>
		<formula>
			<description>真实世界:$ var和$ {var}变量名&#13;&#10;有关分步说明,请在RegexMagic的帮助文件中的内容列表中单击“示例”,“真实世界”,“变量名称”.</description>
			<samples>
				<sample name="Variables">
					<string><![CDATA[$VARIABLE_NAME
${BETWEEN_BRACES}
$ANOTHER_VARIABLE
$VAR4
${VAR5}
$6
${7}]]></string>
					<field>
						<pos start="0" stop="1"/>
						<pos start="16" stop="17"/>
					</field>
					<field/>
					<field>
						<pos start="1" stop="14"/>
					</field>
					<field/>
					<field>
						<pos start="17" stop="18"/>
					</field>
					<field>
						<pos start="18" stop="32"/>
					</field>
					<field>
						<pos start="32" stop="33"/>
					</field>
				</sample>
			</samples>
			<match validation="average">
				<field>
					<literal>
						<literal>$</literal>
					</literal>
				</field>
				<field kind="alternation">
					<fields>
						<field maxrepeat="32">
							<charsbasic characters="_" lettersupper="1" letterslower="1" digits="1"/>
						</field>
						<field kind="sequence">
							<fields>
								<field>
									<literal>
										<literal>{</literal>
									</literal>
								</field>
								<field maxrepeat="32">
									<charsbasic characters="_" lettersupper="1" letterslower="1" digits="1"/>
								</field>
								<field>
									<literal>
										<literal>}</literal>
									</literal>
								</field>
							</fields>
						</field>
					</fields>
				</field>
			</match>
			<action/>
		</formula>
		<formula>
			<description>真实世界:别的东西(第1部分)＃13;＃10;有关分步说明,请点击RegexMagic帮助文件中的内容列表中的例子,真实世界,与其他东西.</description>
			<samples>
				<sample name="HTML">
					<string><![CDATA[<h1>Matching Something Within Something Else</h1>
<p>Introduction</p>
<div>
<p>We want <i>this</i> paragraph.</p>
<table><tr><td>We</td><td>don't</td><td>want</td><td>tables</td></tr></table>
<p>We want this one too.</p>
</div>
<p>We don't want this one.</p>
<p>Nor this one.</p>
<div>
<p>Another one we want.</p>
<p>:-)</p>
</div>
<p>The end.</p>]]></string>
					<field>
						<pos start="72" stop="77"/>
					</field>
					<field>
						<pos start="77" stop="227"/>
					</field>
					<field>
						<pos start="227" stop="233"/>
					</field>
				</sample>
			</samples>
			<match validation="average">
				<field>
					<literal caseless="1">
						<literal>&lt;div></literal>
					</literal>
				</field>
				<field minrepeat="0" maxrepeat="unlimited" quantifier="lazy">
					<anything kind="anything" spanlines="1"/>
				</field>
				<field>
					<literal caseless="1">
						<literal>&lt;/div></literal>
					</literal>
				</field>
			</match>
			<action/>
		</formula>
		<formula>
			<description>现实世界:别的东西(第2部分)＃13;＃10;有关分步说明,请点击RegexMagic帮助文件中的内容列表中的例子,真实世界,与其他东西.</description>
			<samples>
				<sample name="HTML">
					<string><![CDATA[<h1>Matching Something Within Something Else</h1>
<p>Introduction</p>
<div>
<p>We want <i>this</i> paragraph.</p>
<table><tr><td>We</td><td>don't</td><td>want</td><td>tables</td></tr></table>
<p>We want this one too.</p>
</div>
<p>We don't want this one.</p>
<p>Nor this one.</p>
<div>
<p>Another one we want.</p>
<p>:-)</p>
</div>
<p>The end.</p>]]></string>
					<field>
						<pos start="72" stop="77"/>
					</field>
					<field>
						<pos start="77" stop="227"/>
					</field>
					<field>
						<pos start="227" stop="233"/>
					</field>
				</sample>
			</samples>
			<match validation="average">
				<field>
					<literal caseless="1">
						<literal>&lt;p></literal>
					</literal>
				</field>
				<field minrepeat="0" maxrepeat="unlimited" quantifier="lazy">
					<anything kind="anything" spanlines="1"/>
				</field>
				<field>
					<literal caseless="1">
						<literal>&lt;/p></literal>
					</literal>
				</field>
			</match>
			<action/>
		</formula>
		<formula>
			<description>真实世界:&#13;&#10;使用可选v和可选内部版本号(4444)匹配版本号(如v.1.2.3.4444)的正则表达式.&#13;&#10;通过捕获组来捕获主要,次要,发布和版本号.&#13;&#10;有关分步说明,请在RegexMagic的帮助文件中的内容列表中点击示例,Real World,版本号.</description>
			<samples scope="line">
				<sample name="Version numbers">
					<text format="utf16le">dgA2AC4AMAAuADEANQA2ACAAZgBvAHIAIABXAGkAbgBkAG8AdwBzACAAMgAwADAAMAAvADIAMAAwADMALwBYAFAALwBWAGkAcwB0AGEADQAKAFMAZQByAHYAZQByACAAdgBlAHIAcwBpAG8AbgAgADEALgAxAC4AMgAwAA0ACgBDAGwAaQBlAG4AdAAgAE0AYQBuAGEAZwBlAHIAIAB2AGUAcgBzAGkAbwBuACAAMQAuADEALgAyADQADQAKAHYAMQAyAC4AMgAyAC4ANQAuADEAMwAzADMA</text>
					<field>
						<pos start="0" stop="2"/>
					</field>
					<field>
						<pos start="2" stop="4"/>
					</field>
					<field>
						<pos start="4" stop="6"/>
					</field>
					<field>
						<pos start="6" stop="8"/>
						<pos start="198" stop="202"/>
					</field>
					<field>
						<pos start="8" stop="10"/>
					</field>
					<field>
						<pos start="10" stop="16"/>
					</field>
					<field/>
					<field>
						<pos start="206" stop="208"/>
					</field>
					<field>
						<pos start="208" stop="216"/>
					</field>
					<field/>
				</sample>
			</samples>
			<match start="word" stop="word" validation="average">
				<field minrepeat="0" maxrepeat="1">
					<literal>
						<literal>v</literal>
					</literal>
				</field>
				<field>
					<integer>
						<format>dec</format>
					</integer>
				</field>
				<field>
					<literal>
						<literal>.</literal>
					</literal>
				</field>
				<field>
					<integer leadingzeros="1">
						<format>dec</format>
					</integer>
				</field>
				<field>
					<literal>
						<literal>.</literal>
					</literal>
				</field>
				<field>
					<integer>
						<format>dec</format>
					</integer>
				</field>
				<field kind="sequence" minrepeat="0" maxrepeat="1">
					<fields>
						<field>
							<literal>
								<literal>.</literal>
							</literal>
						</field>
						<field>
							<integer>
								<format>dec</format>
							</integer>
						</field>
					</fields>
				</field>
			</match>
			<action>
				<captures>
					<capture name="major" field="1"/>
					<capture name="minor" field="3"/>
					<capture name="release" field="5"/>
					<capture name="build" field="8"/>
				</captures>
			</action>
		</formula>
		<formula>
			<description>真实世界:版本号(匹配)&#13;&#10;使用可选v和可选内部版本号(4444)匹配版本号(如v.1.2.3.4444)的正则表达式.&#13;&#10;有关分步说明,请在RegexMagic的帮助文件中的内容列表中点击示例,Real World,版本号.</description>
			<samples scope="line">
				<sample name="Version numbers">
					<text format="utf16le">dgA2AC4AMAAuADEANQA2ACAAZgBvAHIAIABXAGkAbgBkAG8AdwBzACAAMgAwADAAMAAvADIAMAAwADMALwBYAFAALwBWAGkAcwB0AGEADQAKAFMAZQByAHYAZQByACAAdgBlAHIAcwBpAG8AbgAgADEALgAxAC4AMgAwAA0ACgBDAGwAaQBlAG4AdAAgAE0AYQBuAGEAZwBlAHIAIAB2AGUAcgBzAGkAbwBuACAAMQAuADEALgAyADQADQAKAHYAMQAyAC4AMgAyAC4ANQAuADEAMwAzADMA</text>
					<field>
						<pos start="0" stop="2"/>
					</field>
					<field>
						<pos start="2" stop="4"/>
					</field>
					<field>
						<pos start="4" stop="6"/>
					</field>
					<field>
						<pos start="6" stop="8"/>
						<pos start="198" stop="202"/>
					</field>
					<field>
						<pos start="8" stop="10"/>
					</field>
					<field>
						<pos start="10" stop="16"/>
					</field>
					<field/>
					<field>
						<pos start="206" stop="208"/>
					</field>
					<field>
						<pos start="208" stop="216"/>
					</field>
					<field/>
				</sample>
			</samples>
			<match start="word" stop="word" validation="average">
				<field minrepeat="0" maxrepeat="1">
					<literal>
						<literal>v</literal>
					</literal>
				</field>
				<field>
					<integer>
						<format>dec</format>
					</integer>
				</field>
				<field>
					<literal>
						<literal>.</literal>
					</literal>
				</field>
				<field>
					<integer leadingzeros="1">
						<format>dec</format>
					</integer>
				</field>
				<field>
					<literal>
						<literal>.</literal>
					</literal>
				</field>
				<field>
					<integer>
						<format>dec</format>
					</integer>
				</field>
				<field kind="sequence" minrepeat="0" maxrepeat="1">
					<fields>
						<field>
							<literal>
								<literal>.</literal>
							</literal>
						</field>
						<field>
							<integer>
								<format>dec</format>
							</integer>
						</field>
					</fields>
				</field>
			</match>
			<action/>
		</formula>
	</library>
</rxm:regexmagic>
