<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://wiki.xhsr.org.cn/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E6%9D%BF%3AStr_test</id>
	<title>模板:Str test - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.xhsr.org.cn/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E6%9D%BF%3AStr_test"/>
	<link rel="alternate" type="text/html" href="https://wiki.xhsr.org.cn/index.php?title=%E6%A8%A1%E6%9D%BF:Str_test&amp;action=history"/>
	<updated>2026-05-01T17:02:48Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.39.12</generator>
	<entry>
		<id>https://wiki.xhsr.org.cn/index.php?title=%E6%A8%A1%E6%9D%BF:Str_test&amp;diff=2940&amp;oldid=prev</id>
		<title>2023年8月26日 (六) 07:14 星河</title>
		<link rel="alternate" type="text/html" href="https://wiki.xhsr.org.cn/index.php?title=%E6%A8%A1%E6%9D%BF:Str_test&amp;diff=2940&amp;oldid=prev"/>
		<updated>2023-08-26T07:14:54Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2023年8月26日 (六) 15:14的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;第1行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第1行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;includeonly&amp;gt;{{#if:{{#invoke:Str_test|main|{{{str|{{{1|}}}}}}|{{{ptn|{{{2|}}}}}}}}|{{{then|1}}}|{{{else|}}}}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;{{Documentation|content=&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;includeonly&amp;gt;{{#if:{{#invoke:Str_test|main|{{{str|{{{1|}}}}}}|{{{ptn|{{{2|}}}}}}}}|{{{then|1}}}|{{{else|}}}}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;{{Documentation|content=&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Template:High-risk&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|14000+&lt;/del&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Template:High-risk}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== 简介 ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== 简介 ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;这个模板将判断正则表达式是否可以匹配字符串，若成功匹配至少一个结果，则默认输出1，否则输出空。&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;这个模板将判断正则表达式是否可以匹配字符串，若成功匹配至少一个结果，则默认输出1，否则输出空。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wumoe:diff::1.12:old-2939:rev-2940 --&gt;
&lt;/table&gt;</summary>
		<author><name>星河</name></author>
	</entry>
	<entry>
		<id>https://wiki.xhsr.org.cn/index.php?title=%E6%A8%A1%E6%9D%BF:Str_test&amp;diff=2939&amp;oldid=prev</id>
		<title>星河：​创建页面，内容为“&lt;includeonly&gt;{{#if:{{#invoke:Str_test|main|{{{str|{{{1|}}}}}}|{{{ptn|{{{2|}}}}}}}}|{{{then|1}}}|{{{else|}}}}}&lt;/includeonly&gt;&lt;noinclude&gt;{{Documentation|content= {{Template:High-risk|14000+}} == 简介 == 这个模板将判断正则表达式是否可以匹配字符串，若成功匹配至少一个结果，则默认输出1，否则输出空。 == 参数 == * str：要匹配的字符串，这个参数也对应匿名参数1 * ptn：正则表达式，支持以&lt;code&gt;&lt;n…”</title>
		<link rel="alternate" type="text/html" href="https://wiki.xhsr.org.cn/index.php?title=%E6%A8%A1%E6%9D%BF:Str_test&amp;diff=2939&amp;oldid=prev"/>
		<updated>2023-08-26T07:14:18Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“&amp;lt;includeonly&amp;gt;{{#if:{{#invoke:Str_test|main|{{{str|{{{1|}}}}}}|{{{ptn|{{{2|}}}}}}}}|{{{then|1}}}|{{{else|}}}}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;{{Documentation|content= {{Template:High-risk|14000+}} == 简介 == 这个模板将判断正则表达式是否可以匹配字符串，若成功匹配至少一个结果，则默认输出1，否则输出空。 == 参数 == * str：要匹配的字符串，这个参数也对应匿名参数1 * ptn：正则表达式，支持以&amp;lt;code&amp;gt;&amp;lt;n…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;includeonly&amp;gt;{{#if:{{#invoke:Str_test|main|{{{str|{{{1|}}}}}}|{{{ptn|{{{2|}}}}}}}}|{{{then|1}}}|{{{else|}}}}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;{{Documentation|content=&lt;br /&gt;
{{Template:High-risk|14000+}}&lt;br /&gt;
== 简介 ==&lt;br /&gt;
这个模板将判断正则表达式是否可以匹配字符串，若成功匹配至少一个结果，则默认输出1，否则输出空。&lt;br /&gt;
== 参数 ==&lt;br /&gt;
* str：要匹配的字符串，这个参数也对应匿名参数1&lt;br /&gt;
* ptn：正则表达式，支持以&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;标签包裹的格式传入，这个参数也对应匿名参数2&lt;br /&gt;
* then：匹配到输出，默认为数字1&lt;br /&gt;
* else：未匹配到输出&lt;br /&gt;
}}&lt;br /&gt;
[[分类:辅助模板]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>星河</name></author>
	</entry>
</feed>