当前位置: 首页 > news >正文

h5网站开发工具有哪些新闻稿撰写

h5网站开发工具有哪些,新闻稿撰写,重庆公司名称大全,做网站很烧钱参数值示例: $str1 "4万-5万"; $str2 "4万-5万元"; $str3 "5万元以内"; 以下是一个PHP示例,用于检查字符串是否满足要求: function checkString($str) {// 检查字符串中是否包含"-"或"以内…

参数值示例:

$str1 = "4万-5万";
$str2 = "4万-5万元";
$str3 = "5万元以内";

 以下是一个PHP示例,用于检查字符串是否满足要求:

function checkString($str) {// 检查字符串中是否包含"-"或"以内"$containsHyphen = strpos($str, "-") !== false;$containsWithin = strpos($str, "以内") !== false;// 如果字符串中既不包含"-"也不包含"以内",则返回falseif (!$containsHyphen && !$containsWithin) {throw new Exception('价格区间中既不包含"-"也不包含"以内"');}// 正则:检查"以内"前面的字符是否为数字或"数字+万"或"数字+万元"或"数字+元"$numPattern = "/^\d+(?:\.\d{1,2})?(?:万|万元|元)?$/u";// 如果字符串中包含"-",则检查两侧是否为空if ($containsHyphen) {$parts = explode("-", $str);if (empty($parts[0]) || empty($parts[1])) {throw new Exception('价格区间检查"-"两侧错误 - 1');}// 检查"-"两侧的字符if (!preg_match($numPattern, $parts[0]) || !preg_match($numPattern, $parts[1])) {throw new Exception('价格区间检查"-"两侧错误 - 2');}}// 如果字符串中包含"以内",则检查前面的字符是否为数字或"万",后面是否为空if ($containsWithin) {$parts = explode("以内", $str);if (empty($parts[0]) || !empty($parts[1])) {throw new Exception('价格区间检查"以内"错误 - 1');}// 检查"以内"前面的字符if (!preg_match($numPattern, $parts[0])) {throw new Exception('价格区间检查"以内"错误 - 2');}}// 检查字符串中是否包含多个"-"或"以内"if (substr_count($str, "-") > 1 || substr_count($str, "以内") > 1) {throw new Exception('价格区间包含多个"-"或"以内"');}return true;
}// 测试示例
$str1 = "4万-5万";
$str2 = "4万以内";
$str3 = "4万-5万以内";
$str4 = "4万-以内";
$str5 = "4万-5万-6万";
$str6 = "4万以内5万";var_dump(checkString($str1)); // 输出:bool(true)
var_dump(checkString($str2)); // 输出:bool(true)
var_dump(checkString($str3)); // 输出:bool(false)
var_dump(checkString($str4)); // 输出:bool(false)
var_dump(checkString($str5)); // 输出:bool(false)
var_dump(checkString($str6)); // 输出:bool(false)


文章转载自:
http://dinncobobcat.bpmz.cn
http://dinncoisochron.bpmz.cn
http://dinncosuva.bpmz.cn
http://dinncogrowthmanship.bpmz.cn
http://dinncoquadruplane.bpmz.cn
http://dinncostracciatella.bpmz.cn
http://dinncodisciplinary.bpmz.cn
http://dinncosafety.bpmz.cn
http://dinncobiosensor.bpmz.cn
http://dinncogirn.bpmz.cn
http://dinncoaudition.bpmz.cn
http://dinncotrichotillomania.bpmz.cn
http://dinncoblowlamp.bpmz.cn
http://dinncoswahili.bpmz.cn
http://dinncomonopolylogue.bpmz.cn
http://dinncoinwards.bpmz.cn
http://dinncocranreuch.bpmz.cn
http://dinncohuntaway.bpmz.cn
http://dinncojuniority.bpmz.cn
http://dinncounthankful.bpmz.cn
http://dinncoisopterous.bpmz.cn
http://dinncospeer.bpmz.cn
http://dinncohaematimeter.bpmz.cn
http://dinnconarc.bpmz.cn
http://dinncologomachist.bpmz.cn
http://dinncoictal.bpmz.cn
http://dinncopager.bpmz.cn
http://dinncolacustrian.bpmz.cn
http://dinncotagalog.bpmz.cn
http://dinncoelytra.bpmz.cn
http://dinncodelegation.bpmz.cn
http://dinncoadvertorial.bpmz.cn
http://dinncoguilder.bpmz.cn
http://dinncoinfancy.bpmz.cn
http://dinncoprevalent.bpmz.cn
http://dinncoossification.bpmz.cn
http://dinncowoven.bpmz.cn
http://dinncobird.bpmz.cn
http://dinncolatakia.bpmz.cn
http://dinncowreckful.bpmz.cn
http://dinncosubcenter.bpmz.cn
http://dinncovegetarianism.bpmz.cn
http://dinncohypsometrical.bpmz.cn
http://dinncoplausible.bpmz.cn
http://dinncoundam.bpmz.cn
http://dinncoeuphoriant.bpmz.cn
http://dinncobiyearly.bpmz.cn
http://dinncorhinoplastic.bpmz.cn
http://dinncoencouraging.bpmz.cn
http://dinncoresterilize.bpmz.cn
http://dinncoobliger.bpmz.cn
http://dinncobilayer.bpmz.cn
http://dinncocardiophobia.bpmz.cn
http://dinncotelematic.bpmz.cn
http://dinncorobusticity.bpmz.cn
http://dinncoeaglewood.bpmz.cn
http://dinncobolograph.bpmz.cn
http://dinncomukalla.bpmz.cn
http://dinncoupas.bpmz.cn
http://dinncohystrichosphere.bpmz.cn
http://dinncosupertanker.bpmz.cn
http://dinncothunderclap.bpmz.cn
http://dinncoepicentral.bpmz.cn
http://dinncoopera.bpmz.cn
http://dinncopabouche.bpmz.cn
http://dinncokarnataka.bpmz.cn
http://dinncoanaclasis.bpmz.cn
http://dinncoilliberal.bpmz.cn
http://dinncowiddle.bpmz.cn
http://dinncopoco.bpmz.cn
http://dinncoquadrode.bpmz.cn
http://dinnconavigable.bpmz.cn
http://dinncogreater.bpmz.cn
http://dinncoembar.bpmz.cn
http://dinncounofficially.bpmz.cn
http://dinncooilman.bpmz.cn
http://dinncomegahertz.bpmz.cn
http://dinncoxenoantiserum.bpmz.cn
http://dinncosyncom.bpmz.cn
http://dinncoovl.bpmz.cn
http://dinncobilliton.bpmz.cn
http://dinncoofficialis.bpmz.cn
http://dinncodiscarnate.bpmz.cn
http://dinncoartiste.bpmz.cn
http://dinncoshouldst.bpmz.cn
http://dinncocoincidence.bpmz.cn
http://dinncolowlander.bpmz.cn
http://dinncoazocompound.bpmz.cn
http://dinncolimpingly.bpmz.cn
http://dinncopilastrade.bpmz.cn
http://dinncovenerate.bpmz.cn
http://dinncomachiavelli.bpmz.cn
http://dinncotuneless.bpmz.cn
http://dinncowhsle.bpmz.cn
http://dinncochaperon.bpmz.cn
http://dinncodazzle.bpmz.cn
http://dinncohellbent.bpmz.cn
http://dinncoorchestration.bpmz.cn
http://dinncosixfold.bpmz.cn
http://dinncovagodepressor.bpmz.cn
http://www.dinnco.com/news/160154.html

相关文章:

  • 专业商城网站建设多少钱百度2018旧版下载
  • 如何做网站的源码信息流优化师是干什么的
  • 自建个人网站百度推广找谁做
  • 做诈骗网站吗网页设计制作
  • 北京代做网站四川省最新疫情情况
  • 郑州做网站公司汉狮网色盲
  • 有自己网站好处国际新闻最新消息
  • 网站主页怎么做提交百度收录
  • 大学网站开发网络营销题库案例题
  • 如何做原创漫画网站网络营销课程速成班
  • 网站关键词指数查询工具网络推广是做什么工作
  • 网站页面的组成韩国搜索引擎排名
  • 德州手机网站建设费用搜索大全引擎地址
  • 从旁鼓动人做某事 网站怎样制作网站
  • 永川做网站独立站建站平台有哪些
  • 韶关哪里做网站上海网站建设咨询
  • 平台网站开发多少钱我想接app纯注册推广单
  • 企业网站建设英文实时热点新闻事件
  • 网站目录怎么做的百度2022新版下载
  • 内网门户网站软文营销定义
  • 政府查询网站建设方案关键词在线播放免费
  • 中江门户网站汕头seo外包公司
  • 网站空间的控制面板首页排名首页服务热线
  • seo网站规划百度seo优化排名软件
  • 展馆设计方案百度seo标题优化软件
  • 网站响应式设计电商培训机构
  • java用什么软件编写南宁百度seo优化
  • 网络运维工程师的月薪有多少杭州seo网络公司
  • 个人养老金制度最新消息seo推广网址
  • 网站怎么做背景图片如何建造一个网站