0

只想向正则表达式专家寻求帮助。这是我的情况:

在 mysql 中,我可以使用像这样的 LIKE 运算符进行文本过滤Changed STATUS from%PAID IN FULL可以搜索包含在我指定的确切文本之间的内容的字符串: 可以搜索如下:

Changed STATUS from PROMISE TO PAY to PAID IN FULL
Changed STATUS from NEWBIZ to PAID IN FULL
Changed STATUS from CALLED IN 1ST to PAID IN FULL
Changed STATUS from NSF to PAID IN FULL

但不是

 lllbozeman@aol.com send confirmation paid in full.
 email paid in full letter when paid off

在 PHP 正则表达式中我该怎么做?

4

1 回答 1

0

利用

~Changed STATUS from(.*?)PAID IN FULL~

如果您希望它不区分大小写i,请在第二个之后放置~

另请注意括号是可选的 - 如果您想捕获它之间的文本(它将捕获到第 1 组)

于 2012-12-24T00:57:01.840 回答