Replacing them with Spaces or another innocuous character, and then treat the resultant string as if it were just a regular string (with the date in the middle).
用空格或其他无害字符替换它们,然后将结果字符串视为只是一个常规字符串(日期在中间)。
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 为结尾的字符串相匹配。
I may yet replace the calls in question with hand-coded string operations, since they're only used with a few very specific regular expressions.
我仍然将存在隐患的调用替换成亲自编写的字符串操作,因为它们仅和少数特定的正则表达式一起使用。
When specifying patterns in the element, realize that regular expressions are used to perform the matching and string replacement.
在元素中指定模式时,请注意,要使用正则表达式来执行匹配和字符串替换。
And its built-in string manipulation functions (including regular expressions), as well as procedural and convenience features make it the ideal language for creating simple "scripting" programs.
而其内置的字符串操纵函数(包括正则表达式),以及程序上的特性和方便性使它成为创建简单“脚本”程序的理想语言。
Search Settings include choosing case sensitivity, scope, and whether or not to interpret the search string as a regular expression or as a literal string.
搜索设置包括选择是否区分大小写、将搜索字符串作为正则表达式还是文本字符串解释等。
Of course, regular expressions are limited to strict string comparisons.
当然,正则表达式被限定为严格的字符串比较。
The way I have programmed these informal parsing tasks has always been somewhat of a hodgepodge of custom state-machines, regular expressions, and context-driven string tests.
我编写处理这些非正式解析任务的程序的方法总是有点象大杂烩,其中包括定制状态机、正则表达式以及上下文驱动的字符串测试。
This function attempts to match and return a specific occurrence of a pattern that is defined by the regular expression against the source string.
此函数试图匹配并返回正则表达式针对源字符串定义的模式的特定发生项。
This function attempts to match a specific occurrence of the pattern that is defined by the regular expression against the source string.
此函数试图匹配正则表达式针对源字符串的模式的特定发生项。
Sure, you could use regular expressions or String searches, but that would be too much work.
当然,您可以使用常规表达式或String搜索,但所需的工作量太大。
The syntax USES PRCE (Perl Compatible Regular Expressions), a very powerful way of matching any desired string pattern.
这个语法使用的是PRCE (PerlCompatibleRegularExpressions),一种用来匹配任意目标字符串模式的有效方法。
The first regular expression will match the string "main" followed by any number of Spaces or tabs, followed by an open parenthesis.
第一个规则表达式将与后面依次跟有任意数量的空格或制表键以及开始圆括号的字符串“main ”匹配。
In contrast to re (regular expressions), string functions are generally much faster, and in most cases they are easier to understand and maintain.
与re(规则表达式)相比,string函数通常更快速,大多数情况下他们更易于理解和维护。
Given a string, it loops through the Match to try to find the appropriate regular expression.
给定一个字符串,它对Match进行循环以试图找到相应的正则表达式。
Note that the varlist function can be a little tricky because it must take a regular expression (an empty string will NOT work).
varlist可能有点麻烦,因为它必须采用正则表达式(空字符串是绝对无效的)。
URL pattern: a Perl-compatible regular expression string to be matched with the URL sent by the client.
URL模式:与Perl兼容的正则表达式字符串,将与客户端发送的URL进行匹配。
The filter_var() function greatly reduces the amount of coding compared to if you were to try to do this manually with a regular expression and string functions.
与尝试用正则表达式和字符串函数手动完成此工作相比,使用 filter_var()函数将极大地减少编码量。
The new regular expression in the second line matches any string that contains MSIE or starts with Lynx.
第二行中的新正则表达式匹配任何包含MSIE或以Lynx开头的字符串。
When initialize is called by the framework, the NameReferenceAnnotator reads the regular expression as a string from its descriptor and compiles it.
当框架调用initialize时,NameReferenceAnnotator从描述符以字符串形式读取正则表达式并编译它。
Listing 1 a small regular expression in Perl that substitutes every occurrence of with in an HTML string.
清单1给出了一个使用Perl编写的正则表达式,它可以将HTML字符串中的每个替换成。
The current year was then worked out by constructing a Date object, formatted as a string, and then a regular expression was used to parse out the year.
当前年度通过构建一个Date对象(格式为一个字符串)计算,然后使用一个正则表达式来解析年份。
Well, for starters, "Hello World" is a regular 8-bit-per-character string and assigning it to an array of 32-bits per character is invalid.
对于初学者来说,“Hello World ”是每个字符8位的常规字符串,把它赋值给每个字符32位的数组是非法的。
Calling.r on a string turns it into a regular expression; we use raw (triple-quoted) strings here to avoid having to double-escape backslashes.
在一个字符串上调用。r会把它变成一个正则表达式;我们是用了原始(三重引号)字符串来避免诸多双重转义的反斜杠。
How to use regular expressions (string patterns), enumerations, unions, lists, and substitution groups?
如何使用正则表达式(字符串范式)、枚举、联合、列表以及置换组?
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.
正则表达式描述字符串的格式:使用最简单的正则表达式格式,您可以输入您希望匹配的文本。
It is of course possible to have other formats, simply by changing he regular expression in the URL pattern string.
当然,还可能有其它的格式,只需要在URL格式的字符串中修改正则表达式即可。
His plan is to make one that reads regular RNA transcripts of genes but can string together wrong-handed amino acids to form mirror proteins.
他计划去创造一种不但能阅读寻常rna转录体同时又能将错误手性氨基酸串联起来形成镜像蛋白的核糖体。
The regular expression is a string loaded from a text file, so you don't need to change the code when you want to add support for a new type of postal code.
由于正则表达式是从文本文件中装载的一个字符串,所以当添加对新类型的邮政编码的支持时,不需要更改代码。
Using a regular expression engine, it is easy to test if a string matches the pattern.
通过使用正则表达式引擎,很容易测试出字符串是否与模式匹配。
应用推荐