> >

Re: PHP regular expression summary

time:11-05-22 forum:PHP tools and code
  / / matching text, this is occasionally better, but be careful that the character contains \E
$str ='[a-z]';
$str = preg_replace ('/\G[a-z]\E/', '', $str);
echo $str; / / / / Print empty, the copy content is probably copied to the clipboard code: The result is named so that in the matching result, the name can be used to get the value
$str ='abc123abc';
preg_match (' / (? P).
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10

prev:775 CY Yang 2.8 processor 512M memory, t... next:The price of Ji'nan floor fell to nine t...
post comments
Notice



Approved   Reminder: Taobao's new scam, do not ...   Recruitment of job search websites i...   Ji'nan related blog collection   Nine cases of individual advisable h...   Ten big springs in Ji'nan
rand   Encryption and decryption of PHP fil...   PHP hidden data, MD5 encryption, int...   Processing method of Chinese charact...   The solution of reading TXT Chinese ...   Lightweight CMS
ads

other

Because all the contents of this site are reproduced from other media, the intention is to provide free services to the public, but it does not mean that this site agrees with its views, and can not be responsible for the authenticity of its verification, such as the copyright unit or individual of the manuscript does not want to publish on this site, please Contact me, I will immediately remove it, thank you. Contact: atseashawk@163.com