- 论坛徽章:
- 0
|
原帖由 silverdust 于 2006-1-19 16:37 发表
可以了,谢谢dradhzn,能不能解释一下这条语句的意思
也好举一反三
[^aaa\.\|]*\|
from left to right: (having a aaa infront , but ) not start with "aaa" and do not contain a "." and a "|" , group the conditions with [ ] , apply "*" for more than one char matching . and end with a "|"
this is the regex for this single pattern that you want to be replaced . thus , if the pattern found , use backreference \( \) and \1 to reserve this pattern .
hope you can understand .
[ 本帖最后由 dradhzn 于 2006-1-19 16:58 编辑 ] |
|