需要模式匹配(正则表达式)

编程入门 行业动态 更新时间:2024-10-27 12:36:11
本文介绍了需要模式匹配(正则表达式)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我需要以下网址的模式匹配 test.abc/a1-tours-pvt -ltd-business-1234

Hi, I need the pattern matching for the following url test.abc/a1-tours-pvt-ltd-business-1234

推荐答案

创建一个RegEx,其中包含要匹配的模式. 正则表达式速查表 [ ^ ]可帮助您定义正确的模式.一旦您自己尝试过并且仍然无法使它正常工作,请以您尝试过的模式发表评论,我们将看看是否能为您提供帮助. Craete a RegEx which contains the pattern you want to match. The Regular Expressions Cheat Sheet[^] helps you out defining the correct pattern. Once you''ve tried it yourself and still cannot get it to work, post a comment with the pattern you''ve tried and we will see if we can help you.

更多推荐

需要模式匹配(正则表达式)

本文发布于:2023-11-29 17:44:44,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1647134.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:模式   正则表达式

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!