[返回电脑前线首页]·[所有跟帖]·[ 回复本帖 ] ·[热门原创] ·[繁體閱讀]·[版主管理] | |||
各位大虾好! 我需要 regexp 方面的一些帮助。 refind("[[:space:]]", str) will find all the text in the var of the str and to exclude HTML code. What I need is to include the following three sets of special characters: nr // for new line and carriage return, want to retain them : // I want to keep this special character in the text returned as well -- // I want to keep this special character in the text returned as well The following attempt did not work. refind("(nr|:|--|[[:space:]])", str) Please advise. 请帮忙。 多谢。 | |||
|
|||
帖子内容是网友自行贴上分享,如果您认为其中内容违规或者侵犯了您的权益,请与我们联系,我们核实后会第一时间删除。 |
所有跟帖: ( 主贴楼主有权删除不文明回复,拉黑不受欢迎的用户 ) 楼主本栏目热帖推荐:
>>>>查看更多楼主社区动态... |