1
lrvy Oct 17, 2017
\bbrush\b:[php|java]; 这样吗?
|
3
2ME Oct 17, 2017
用 phpQuery 提取出来 CLASS 简单一点
|
4
askfilm Oct 17, 2017
|
5
whahugao Oct 17, 2017 echo preg_replace('/brush:([^\s\']+)/i', "brush:$1toolbar:false;","<div class='brush:php;'>");
|
8
hadixlin Oct 17, 2017
|
9
vincenth520 Oct 17, 2017
```php
<?php $str = "<div class='brush:php;'>"; $key = "brush:(.+);"; $val = "brush:$1;toolbar:false;"; echo preg_replace('/'.$key.'/i',$val,$str); ``` |
10
vincenth520 Oct 17, 2017
不支持 markdown,尴尬了
|
11
hibobby Oct 17, 2017
为啥不把"<div class='brush:php;'>";中的 class='brush:php;'提取出来然后分组操作?
|
12
qq641016547 Oct 17, 2017
|
14
sucaihuo Oct 17, 2017
进来学习一下
|
15
renminghao Oct 17, 2017
/brush:(\w+?)/
|