At the command line, you'll find many ways to use regular expressions.
在命令行中,可以采用许多方法使用正则表达式。
But it was easier to use regular expressions instead to crack the individual segments from the XML code.
但是使用正则表达式比从XML代码中分解单独部分更加简单。
How to use regular expressions (string patterns), enumerations, unions, lists, and substitution groups?
如何使用正则表达式(字符串范式)、枚举、联合、列表以及置换组?
In order to use regular expressions efficiently, it's important to understand how they work their magic.
为了有效地使用正则表达式,重要的是理解它们的工作原理。
To use regular expressions, you must use the prefix ~* for case insensitive match and ~ for case sensitive match.
如果使用正则表达式,你必须使用~*前缀选择不区分大小写的匹配或者~ 选择区分大小写的匹配。
The following example show you how to use regular expressions to extract concepts such as coordinates and areas from text.
下面的示例演示如何使用正则表达式从文本中提取出坐标和面积等概念。
As for regular expressions, remember that old saying that goes: "you had a problem and you tried to use regular expressions to solve it."
对于正则表达式,请记住一句老话:“您有一个问题,用正则表达式解决。”
Unfortunately, the abstraction is leaky: in my ZIP code validator, for example, I would have liked to use regular expressions to perform the check.
不幸的是,抽象是有漏洞的:例如,在我的ZIP代码验证器中,本想使用正则表达式执行检测。
We can use regular expressions to express patterns that we may find in the text.
可以使用规则表达式来表示可能会在文本中发现的模式。
Any database could use regular expressions, and I recommend that you experiment with these functions to find new and even more creative USES.
任何数据库都可以使用正则表达式,我建议您对这此函数进行试验以便发现新的、甚至更具创造性的用途。
That alone is almost worth the price of admission if you're new to regular expressions or if you use advanced regular expression features.
不管您是常规表达式的新手还是已经开始涉足高级常规表达式特性,这点购买的投入都是很值得的。
You use regular expressions to implement the mask.
您要使用正则表达式来实现该蒙版。
At this point, the main application is set up to use the "translated" regular expressions.
至此,主应用程序已经可以使用“翻译”好的正则表达式了。
The rewriting rules can use regular expressions to allow for powerful rewriting rules.
重写规则可以使用正则表达式来实现功能强大的重写规则。
Don't use regular expressions to read XML that comes directly from users; you don't control the form or structure of that XML.
不要用正则表达式读取直接来自用户的XML,因为无法控制这类XML的格式或结构。
You can string together the primitives in Table 1 (and other operators) and use them in combination to build (very) complex regular expressions.
您可以连接表1中显示的元素(以及其他操作符)并加以组合使用,从而构建(非常)复杂的正则表达式。
Determining if a string matches a pattern is the simplest use of regular expressions and, as you see in Figure 1, it's, easy to do.
确定字符串是否与模式匹配是对正则表达式的最简单应用,如图1所示,而且易于操作。
You can't use fgrep to search for regular expressions with patterns.
我们不能使用fgrep来搜索使用模式的正则表达式。
You might want to use pattern matching and regular expressions to perform basic functions like.
您可能想使用模式匹配和正则表达式来执行以下基本功能。
Use regular expressions at the client and at the server to facilitate a consistent validation model
在客户机和服务器上使用正则表达式以维护一个统一的验证模型;
You can use regular expressions to limit which characters are allowed and to be more specific (for example, you can often limit even further what the first character can be).
您可以使用正则表达式来更为详细地限制所允许的字符串(例如,您可以进一步指定第一个字符可以是哪些字母)。
You can use regular expressions to be even more explicit with EasyMock.matches .
还可以通过EasyMock . matches使用更显式的正则表达式。
You can use regular expressions to declare the name of the class; for instance, Hello* traces any classes with names starting with Hello.
可以用正则表达式声明类的名称,例如Hello*会跟踪所有以 Hello开头的名称。
Take some time to get familiar with regular expressions, and try a few regular expressions of your own creation. You can use a regexp this way
花一些时间熟悉规则表达式,然后尝试几个自己创建的规则表达式。
Use regular expressions for more complex filtering (an asterisk (*) is always added to the beginning and end of the filter string, so there's no need to add wildcards for simple strings).
对更复杂的过滤使用正则表达式(过滤字符串的开头和末尾总是添加一个星号 *,因此没有必要为简单的字符串添加通配符)。
To deal with this dilemma, you can use advanced regular expressions.
为了解决这个困境,你可以使用一些高级的正则。
Before you start, you should first understand what regular expressions are and how to use them.
在开始之前,我们需要首先理解什么是正则表达式,以及如何使用正则表达式。
The first approach is to use the regular expressions defined in RFC 4627 to make sure the JSON data doesn't contain active parts.
第一个方法是使用RFC 4627中所定义的正则表达式确保JSON数据中不包含活动的部分。
Much of this information is formatted in such a way that a program can use regular expressions to find information in it.
许多信息都表示为程序可以用正则表达式找出信息的格式。
Regular expressions provide much richer pattern matching across strings of text, but are as easy to use as XPath when traversing a data structure such as an XML tree.
正则表达式提供了跨文本的字符串的更丰富的模式匹配,但在遍历诸如xml树这样的数据结构时,它和XPath一样易于使用。
应用推荐