您要使用正则表达式来实现该蒙版。
为此,上例中使用正则表达式进行替换。
To achieve this in the above example, you use a regular expression to perform the replacement.
使用正则表达式的另一个程序是awk。
Another program that USES regular expression extensively is awk.
使用正则表达式,逻辑就变得简单了。
The logic becomes trivial when you put regular expressions into action.
特别是需要使用正则表达式时。
在命令行中,可以采用许多方法使用正则表达式。
At the command line, you'll find many ways to use regular expressions.
要进行这一验证,需要使用正则表达式。
创建使用正则表达式识别字符串的智能标记。
Creating a smart tag that USES a regular expression to recognize strings.
清单8演示了如何使用正则表达式检查JSON字符串。
Listing 8 demonstrates how to check a JSON string with a regular expression.
然后就可以利用-match操作符来使用正则表达式。
Then you can use the regular expression with the -match operators. Here's an example.
我如何使用正则表达式搜索短语在HTTP响应的身体吗?
首先,我使用“选项”字段来存储函数的正则表达式选项。
First I use the options field to store the regular expression options for the functions.
您还可以使用类似于正则表达式的组来匹配文件。
You can also use regular expression-like groups to match files.
任何正则表达式都可以使用。
然后,使用一个正则表达式将响应分解为单个部分。
Then, I use a regular expression to break out the individual sections from the response.
可以使用- e选项来指定正则表达式。
这个小示例使用最简单的方法:正则表达式。
This small example USES the simplest thing that could possibly work: regular expressions.
两行都使用了正则表达式。
您可能想使用模式匹配和正则表达式来执行以下基本功能。
You might want to use pattern matching and regular expressions to perform basic functions like.
还可以通过EasyMock . matches使用更显式的正则表达式。
You can use regular expressions to be even more explicit with EasyMock.matches .
替换过程使用replace函数和正则表达式完成。
That's accomplished through the use of the replace function along with a regular expression.
至此,主应用程序已经可以使用“翻译”好的正则表达式了。
At this point, the main application is set up to use the "translated" regular expressions.
您还将通过使用这里展示的技巧来“翻译”正则表达式。
Using the technique I'm showing you, you'll also "translate" the regular expression.
所使用的语法是普通而古老的正则表达式语法。
这个例子使用了正则表达式。
注意:这不是grep使用的正则表达式匹配。
Note that this is not regular expression matching as used by grep.
幸运的是,有以下三种优秀的正则表达式理论来源可供使用。
Luckily, three excellent sources of regular expression theory and practice are available.
你可以使用这个特性轻松地使你的正则表达式分为更多的可读部分。
You can use this to break up your regular expression into more readable parts.
如果没有找到匹配的正则表达式,使用常规字符串的结果。
If no regular expression_r matches are found, the result from the convention string search is used.
如果没有找到匹配的正则表达式,使用常规字符串的结果。
If no regular expression_r matches are found, the result from the convention string search is used.
应用推荐