我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

preg_match()中的分隔符的目的[重复]

This question already has an answer here:

  • PHP regex delimiter, what's the point? 3 answers

I understand how to use delimiters in php's preg_match(), just not why I have to use them.

</div>

Delimiters are used to wrap your regular expression. It tells the interpreter which characters make up your regular expression and which characters are relevant flags to modify how the interpreter acts on your regular expression. Other than that, it is simply the way it was implemented.

近期文章

  • 如何使用ajax和php提交表单
  • php通过引用传递
  • 建立评论/发布和回复系统[关闭]
  • 在PHP中合并邮件的两个文本框值
  • 重写规则:我做得对吗?
  • PHP围绕不同的结果[重复]
  • 如何使用php或js记录用户在我的网站页面中的停留时间? [关闭]
  • if语句不正确[关闭]
  • 在Php中调用函数时出现致命错误[关闭]
  • preg_grep - 反转工作[关闭]
  • 如何在PHP中获取日期字段? [重复]
  • 为什么这个SELECT * FROM数据库不起作用?
  • 使用mysql数据库中的图像生成PDF文件[关闭]
  • 如何在不同的dom元素中用ajax显示数据?
  • too long
  • 在数学之前拆分字符串[关闭]
  • 将PHP字符串导出到文件时出错[关闭]
  • 通过javascript调用php函数[重复]
  • 如何将所选选项传递到另一个页面
  • 如何防止XSS和CSS注入? [关闭]

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华