Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/regex/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在这个字符串中如何使用look behind regex_Regex - Fatal编程技术网

在这个字符串中如何使用look behind regex

在这个字符串中如何使用look behind regex,regex,Regex,我想从后面选择指数数字。我使用这个正则表达式(?只需在末尾添加$,因此您的正则表达式应该是(?为了允许更大的灵活性,可以添加一个负前瞻模式,以确保没有另一个^如下所示: (?<=\^)(\d\^\d)(?!\^) (?在^上拆分?在^@Jan上拆分是什么意思

我想从后面选择指数数字。我使用这个正则表达式
(?只需在末尾添加
$
,因此您的正则表达式应该是
(?为了允许更大的灵活性,可以添加一个负前瞻模式,以确保没有另一个
^
如下所示:

(?<=\^)(\d\^\d)(?!\^)

(?在
^
上拆分?在
^
@Jan上拆分是什么意思