请教正则表达式

请教正则表达式

DSCI: 1,0,6,1,0,"13801002251",129,1,47,128,"",255
匹配带47的是DSCI: 1,0,6,1,0(\\S+)([47|88])(.*)
如何匹配非47的字符串呢?
你说的什么意思,不太明白


QUOTE:
原帖由 lixiaocheng0451 于 2008-11-6 19:02 发表
DSCI: 1,0,6,1,0,"13801002251",129,1,47,128,"",255
匹配带47的是DSCI: 1,0,6,1,0(\\S+)([47|88])(.*)
如何匹配非47的字符串呢?

! /DSCI: 1,0,6,1,0(\\S+)([47|88])(.*)/
楼上可以,或者用更复杂的(?!...
或者:

[Copy to clipboard] [ - ]
CODE:
$str = "DSCI: 1,0,6,1,0,"13801002251",129,1,47,128,"",255";
if (index($str, "47") < 0) {
...
}

感谢三楼的兄弟...