\S
可是mysql 文档里始终没有提到这个可以在各脚本里使用的特殊字符。我试了
\S
\\S
\\\S
都不能匹配

解决方案 »

  1.   

    楼主,仔细查看官方文档,是有相关说明的。示例如下:
    mysql> select "abc" regexp "[[:blank:]]+";
    +-----------------------------+
    | "abc" regexp "[[:blank:]]+" |
    +-----------------------------+
    |                           0 |
    +-----------------------------+
    1 row in set (0.00 sec)mysql> select "abc " regexp "[[:blank:]]+";
    +------------------------------+
    | "abc " regexp "[[:blank:]]+" |
    +------------------------------+
    |                            1 |
    +------------------------------+
    1 row in set (0.00 sec)文档,详见:http://dev.mysql.com/doc/refman/5.1/zh/regexp.htmlJust search : 空白字符 in this page.