• Can I make a regex match all characters up to; except \;?

    可以一个正则表达式匹配所有字符\;?

    youdao

  • Each regex is represented by a match element.

    每个正则表达式一个匹配元素表示。

    youdao

  • A higher number means that an attempt to match the regex starting at the end of the previous match is done until all matches specified are found. Only the last match is returned.

    更高数字意味着以前匹配结束后开始尝试匹配regex的操作将一直持续到发现所有指定的匹配,然后返回最后匹配项。

    youdao

  • If the regex engine is given the word 'engineering', it will correctly match 'engineer'. The next word boundary, \ b, will not match.

    如果把“engineering”拿去匹配正则引擎匹配到“engineer”,但接下来就遇到了字词边界b,所以匹配成功。

    youdao

  • Here's the rule to follow: count the number of left parentheses from the beginning of the regex - the count is the index to the match array.

    下面需要遵循规则regex开头开始计算括号数目——计数匹配数组索引

    youdao

  • In the first versions of XI, you would specify the regex through a pattern attribute associated to the match element.

    XI第一版本中,应该通过与匹配元素相关模式属性指定正则表达式

    youdao

  • Given a regex and a datum, a regex engine yields whether the datum matches a pattern and, if a match was found, what matched.

    给定正则表达式数据,正则表达式引擎将得到数据是否匹配模式匹配内容(如果找到匹配)等结果。

    youdao

  • If a complete match is found at the current position in the string, the regex declares success.

    如果字符串当前位置发现一个完全匹配那么正则表达式宣布成功

    youdao

  • If you omit it, your regex would match any string that begins with a letter, contains two to nine alphanumeric characters, and any number of any other characters.

    如果忽略掉regex匹配开头字母包含29个字母数字字符以及任意数目任何其他字符的所有字符串

    youdao

  • However, since the regex must be able to match whitespace-only strings, the entire capturing group is made optional by adding a trailing question mark quantifier.

    然而由于正则表达式必需能够匹配全部由空格组成字符串整个捕获通过尾随一个量词成为可选组。

    youdao

  • You have to include the character or characters between the words, otherwise the regex fails to find a match.

    单词之间必须包括(这些)字符否则regex将无法找到匹配。

    youdao

  • The key to preventing this kind of problem is to make sure that two parts of a regex cannot match the same part of a string.

    预防此类问题关键确保正则表达式两个部分不能字符串同一部分进行匹配

    youdao

  • More often, though, a regex is used to prove a match and to extract information about the match.

    但是regex用于检验匹配提取关于匹配的信息

    youdao

  • But if the chosen option can't find a match or anything later in the regex fails, the regex backtracks to the last decision point where untried options remain and chooses one.

    但是如果选择方案未能发现相应匹配或者后来匹配失败了,正则表达式回溯最后一个决策,然后在剩余的选项中选择一个。

    youdao

  • When a particular token fails to match, the regex tries to backtrack to a prior point in the match attempt and follow other possible paths through the regex.

    一个特定字元匹配失败时正则表达式试图回溯扫描之前位置上,然后进入正则表达式其他可能路径上

    youdao

  • As an example, let's say you want to match HTML tags, and you come up with the following regex.

    例如假设匹配HTML标签使用下面正则表达式

    youdao

  • The regex must try all of these permutations before giving up on the match attempt.

    正则表达式最终放弃匹配之前必须尝试所有排列组合。

    youdao

  • By matching more than one character at a time, you'd let the regex skip many unnecessary steps on the way to a successful match.

    是对的,通过每次匹配多个字符,你正则表达式成功匹配的过程中跳过许多不必要的步骤

    youdao

  • You might be surprised to learn, though, that none of the big browsers are currently smart enough to realize in advance that this regex can match only at the end of the string.

    可能觉得奇怪,虽说当前没有哪个浏览器聪明这个程度,能够意识到这个正则表达式只能匹配字符串末尾

    youdao

  • As a regex works its way through a target string, it tests whether a match can be found at each position by stepping through the components in the regex from left to right.

    正则表达式扫描目标字符串时逐个扫描正则表达式的组成部分每个位置上测试不能找到一个匹配

    youdao

  • This is compounded by the fact that if you're using a regex to match small parts of a large string, the regex will fail at many more positions than it will succeed.

    如果使用正则表达式匹配一个很大字符串一小部分,情况更为严重,正则表达式匹配失败位置匹配成功的位置多得多。

    youdao

  • REGEX - How to match set of string with at least one special character anywhere?

    正则表达式-如何至少一个特殊字符字符串地方

    youdao

  • If all possible paths through the regex have been attempted but a match was not found, the regex engine goes back to step 2 to try again at the next character in the string.

    如果正则表达式的所有可能路径尝试了,但是没有成功地匹配,那么正则表达式引擎回到第二字符串下一个字符重新尝试

    youdao

  • It does, and the regex is also able to match the following space character.

    确实匹配然后正则表达式匹配后面的空格。

    youdao

  • If not, the regex continues searching for a match until it finally makes its way through the entire string.

    如果不是这样的话,正则表达式就继续搜索匹配直到穿越整个字符串。

    youdao

  • If not, the regex continues searching for a match until it finally makes its way through the entire string.

    如果不是这样的话,正则表达式就继续搜索匹配直到穿越整个字符串。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定