Therefore the regular expression A*B will match the strings AB, AAB, AAAB, or any other string starting with an A and ending with a single B.
因此,正则表达式 A*B将与字符串AB 、AAB 、AAAB或任何其它以 A 开头并以单个 B 为结尾的字符串相匹配。
You can use that wildcard at any location of the filter string to match any number of unknown characters.
您可以在过滤器字符串的任何位置使用该通配符,以匹配未知字符的数量。
By default, these only match at the very start and the very end of the string.
默认情况下,这些只在字符串的最开始和最末尾处匹配。
It will return each match detected within the input string as requested.
它将按需返回在输入字符串中检测到的各个匹配项。
In an advanced search, the search string is optional, and matches will include only artifacts with names that match the string.
在高级搜索中,搜索字符串是可选的,搜索结果只会包含名字匹配该字符串的工件。
Make sure to use the correct user agent string, since this is the value the portal USES to match an incoming request to your device.
请确保使用正确的用户代理字符串,因为门户使用该值来使入站请求与设备匹配。
You can search for strings in vi using the / command, specifying the pattern to match either as a literal string or as a regular expression.
在vi 中,可以使用 /命令搜索字符串,这需要以字面字符串或正则表达式的形式指定要匹配的模式。
Note that this specifies the localhost and port 9080; if your server or port for HTTP requests are different, you will need to adjust this string to match your choices.
请注意,这指定了localhost和端口9080;如果HTTP请求的服务器或端口与此不同,则将需要调整此字符串以匹配您的选择。
It returns 0 if the match cannot be found or -1 if source string is null or empty.
如果没有发现匹配则返回0,或者如果源字符串是null或空则返回- 1。
Given a string, it loops through the Match to try to find the appropriate regular expression.
给定一个字符串,它对Match进行循环以试图找到相应的正则表达式。
For example, the topic string "Weather/London/#" would match all topics for the London weather station.
例如,主题字符串“Weather/London/#”与伦敦气象台的所有主题匹配。
The first regular expression will match the string "main" followed by any number of Spaces or tabs, followed by an open parenthesis.
第一个规则表达式将与后面依次跟有任意数量的空格或制表键以及开始圆括号的字符串“main ”匹配。
For example, the killall command, at its most basic level, kills all commands that match a particular string.
例如,killall命令最基本的功能是终止所有与特定字符串匹配的命令。
It returns a null if no match is found, or if the source string is null or empty.
如果没有发现匹配项或源字符串是null或空,则返回null。
Section 6.5 deals with regular expression string generation, which is a commonly asked question: "Given a regular expression, how do you find all the strings that match it?"
节介绍的是正则表达式字符串的生成问题,这是一个经常被问到的问题:“给定一个正则表达式,我们应该如何查找与之匹配的所有字符串呢?”
Ruby uses a slightly different approach than many other languages to match the end and the beginning of a string.
Ruby用一种和其他语言略有不同的做法去匹配字符串的开始和结束。
They take in a function as a parameter to use when a match is found. This function receives the match array as a parameter and returns a modified string that is used as a replacement.
你可以为preg_replace_callback指定某个函数为参数,此函数能接收匹配结果数组为参数,并将数组修改后返回,作为替换的结果。
The topic object provides default Settings for the topic string that matches it, as well as topics under it in the topic tree that do not have a topic object defined to match them.
对于匹配TOPIC对象的主题字符串,以及主题树中该主题字符串之下、没有定义与之匹配的TOPIC对象的各个主题,此TOPIC对象为它们提供默认设置。
With this function we can now find multiple matches within a string and extract specific pieces of the information from within each match.
通过此函数,我们现在可在字符串中找到多个匹配项,并且可从每个匹配项中提取特定的信息片段。
Listing 20 shows the code to process events and search records for a match against a user-entered text string.
清单20展示了处理事件以及搜索与用户输入文本字符串相匹配的记录的代码。
A regular expression describes the format of a string: With the simplest form of regular expression, you input the text that you want to match.
正则表达式描述字符串的格式:使用最简单的正则表达式格式,您可以输入您希望匹配的文本。
This function receives the match array as a parameter and returns a modified string that is used as a replacement.
那个函数则接收匹配到的数组作为参数,然后返回一个修改后的字符串作为替换。
It selects the longest match, removes it from the beginning of the original string, and returns the result.
它选择最长的匹配,从初始字符串的开始处除去,然后返回结果。
This argument specifies the localhost and port 9083; if your server or port for HTTP requests are different, adjust this string as necessary to match your values.
此参数指定本地主机和端口 9083;如果您的服务器或用于HTTP请求的端口与此不同,请根据需要调整此字符串以匹配您的值。
If the client's encrypted return string and the locally encrypted string match, the shutdown command is run.
如果客户机的加密过的返回字符串与本地加密的字符串匹配,则运行关闭命令。
This function attempts to match and return a specific occurrence of a pattern that is defined by the regular expression against the source string.
此函数试图匹配并返回正则表达式针对源字符串定义的模式的特定发生项。
Next we get the short string ://, which means to match anything that looks exactly like it (simple, huh?).
接着,我们看到字符串 :// ,它表示查找与它完全相似的字符串(简单吗?)
This has to match another encrypted key that is generated from a string of data scanned into the system from the optical bar-code printed in the passport.
这一密钥须同另一个密钥相匹配,后者是由印刷在护照上的条形码扫描入系统后生成的。
This function attempts to match a specific occurrence of the pattern that is defined by the regular expression against the source string.
此函数试图匹配正则表达式针对源字符串的模式的特定发生项。
Murray got an early boost by breaking Ferrer's serve in the first game of the match, but the Scot gave the advantage right back by making a string of unforced errors to drop serve in the next game.
在比赛的第一局中,穆雷首先打破了费雷尔的发球局并取得领先,但随后,穆雷的连续非收获性失误导致第二局的失败,将优势拱手相让。
应用推荐