84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
1、在vi里想一次性替换以下内容,在线等...
'username' => 'hhhhdb','username' => 'dasfasfsaf',
将以上类似的内容替换成
'username' => 'admin',
自己匹配了半天也匹配不上,期待大神...
拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...
%s/\('username'\s\+=>\s\+'\)[^'"]\+'/\1admin'/g
%s/'username' => '.*'/'username' => 'admin'
%s/'username' => '\w\+'/'username' => 'admin'/
%s/\('username'\s\+=>\s\+'\)[^'"]\+'/\1admin'/g
%s/'username' => '.*'/'username' => 'admin'
%s/'username' => '\w\+'/'username' => 'admin'/