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

网站建设宗旨信息发布网站有哪些

网站建设宗旨,信息发布网站有哪些,苏州市建设人才网官方网站,南充做网站该文章内容为以下视频的学习笔记: 10分钟快速掌握正则表达式_哔哩哔哩_bilibili正则表达式在线测试工具:https://regex101.com/, 视频播放量 441829、弹幕量 1076、点赞数 19330、投硬币枚数 13662、收藏人数 26242、转发人数 2768, 视频作者 奇乐编程学…

 该文章内容为以下视频的学习笔记:

10分钟快速掌握正则表达式_哔哩哔哩_bilibili正则表达式在线测试工具:https://regex101.com/, 视频播放量 441829、弹幕量 1076、点赞数 19330、投硬币枚数 13662、收藏人数 26242、转发人数 2768, 视频作者 奇乐编程学院, 作者简介 ,相关视频:正则表达式30分钟入门40分钟进阶(绝对能学会),【无废话30分钟】Lua快速入门教程 - 4K超清,正则表达式15分钟速成,2022最新 彻底搞懂正则表达式,20分钟学完一遍python基础,一个10分钟的numpy入门教程,15分钟带你快速掌握正则表达式,硬核Python进阶篇 - 一小时掌握正则表达式 【正则表达式,re,Python,正则表达式实例】,Docker 是什么?30秒听懂。,Python小技巧:装饰器(Decorator)icon-default.png?t=N7T8https://www.bilibili.com/video/BV1da4y1p7iZ/?spm_id_from=333.1007.top_right_bar_window_history.content.click&vd_source=4298755c4e2edc1fe805c41cc2d7379a

1.简介:

正则表达式:匹配指定规则的字符串。

应用:

1️⃣编译器中的词法分析器 使用正则表达式去匹配代码中的关键字

2️⃣网站上的注册表单会用到正则表达式去判断密码的复杂程度

3️⃣爬虫中用正则表达式中提取我们需要的信息


2.限定符(一个字符):

(1)?

作用:? 在正则表达式中是一个特殊的字符——限定符,代表前面这个字符需要出现 0 次或者 1 次

 

(2)*

 作用:去匹配 0 个或[多] 个字符(代表没有或者可以出现多次)

(3)+ 

 作用:匹配 出现[1] 次以上的字符

(4){···}

 作用:花括号同时允许我们输入一个范围,精确到匹配次数


3.匹配多个字符的重复

匹配中间多次出现的ab


4.OR Operator “或” 运算


5.Character Classes 字符类

匹配由 abc 这几个字母构成的单词

作用:方括号里的内交代表要求匹配的字符只能取自于它们

此外可以在方括号里指定字符的范围

例:

  • [a-z]代表所有的小写英文字符
  • [a-zA-Z]代表所有的英文字符
  • [a-zA-Z0-9] 代表所有的英文字符和数字

 若在方括号前加  脱字符 ^,则代表要求匹配除了尖号后面列出的 [以外] 的字符


6.Mera-characters  元字符

正则表达式中的大多数元字符都以反斜杠开头 

例:

(1)\d  代表数字字符   等同于 [0-9]

 (2)\w  单词字符(英文、数字及下划线)

(3)\s 空白符(包含Tab和换行符)

 (4)\D 非数字字符

(5)\W 非单词字符

(6)\S 非空白字符

 (7). 字符

 作用:代表任意字符,但不代表换行符

(8)^ 匹配行首  $ 配行尾 

正则表达式中的脱字符(^)有两种不同的用法:

  1. 字符类([])内部:当脱字符(^)作为字符类的第一个字符时,表示取反操作,即匹配除了指定字符以外的任意字符。例如,正则表达式[^aeiou]匹配任意非元音字母。
  2. 模式开头:当脱字符(^)作为正则表达式的开头时,表示匹配字符串的开始位置。例如,正则表达式^abc匹配以"abc"开头的字符串。

7.实操:

(1)匹配里面里面的 HTML标签

错误: 

原因:.+ 会匹配尽可能多的字符 ——>. 代表任意字符

正确方式:

? 会将正则表达式中默认的贪婪匹配(Greedy Match)切换为懒惰匹配(Lazy Match)

 


(2)RGB 颜色值匹配 

匹配文本中出现的所有十六进制 RGB 颜色值

在表达式末尾加入\b 来代表单词字符的边界 

(3)IPv4 地址匹配

 IPv4 的地址实际上是由四段数字构成,数字之间由句点隔开

\d+ 会匹配任何长度大于 1 的数字

\. 代表 . 这个字面量(. 是元字符 代表任意字符)

但 IP 地址的每个部分都是 8 位的数字,也就是说它的范围介于 0-255 之间。

正确方式:

  1. 如果它的前两位是25,那么最后一位只能取 0-5 之间的数字
  2. 如果它的第一位是 2,第二位是 0-4 之间的数,那么最后一位可以取 0-9 之间的任意值(用 \d 代替)
  3. 如果它的第一位是 0 或者 1,那么最后两位可以取 00-99 之间的任意数字(用 \d \ d 代替)

IP 地址的每一部分也可以由两位数字构成,甚至是1位。——> 可以直接将这里的第一个数字和第三个数字后面都加一个 ?

 

📜8.总结:

 学习资源:

正则表达式30分钟入门教程 作者:deerchao
https://deerchao.cn/tutorials/regex/regex.htm

Regex tutorial ——A quick cheatsheet by examples(英文)作者:Jonny Fox
https://medium.com/factory-mind/regex-tutorial-a-simple-cheatsheet-by-examples-649dc1c3f285

Regular Expressions Tutorial(英文)
https://www.regular-expressions.info/tutorial.html

 


文章转载自:
http://iconology.xxhc.cn
http://vulcanism.xxhc.cn
http://myrtle.xxhc.cn
http://merrythought.xxhc.cn
http://antichristian.xxhc.cn
http://peavey.xxhc.cn
http://afflatus.xxhc.cn
http://brickearth.xxhc.cn
http://linguist.xxhc.cn
http://bussbar.xxhc.cn
http://competitory.xxhc.cn
http://seventieth.xxhc.cn
http://benzomorphan.xxhc.cn
http://lunch.xxhc.cn
http://seditty.xxhc.cn
http://semiotic.xxhc.cn
http://xanthone.xxhc.cn
http://cupula.xxhc.cn
http://pestiferous.xxhc.cn
http://hondurean.xxhc.cn
http://southern.xxhc.cn
http://intravascular.xxhc.cn
http://maharashtrian.xxhc.cn
http://khz.xxhc.cn
http://grouch.xxhc.cn
http://makeevka.xxhc.cn
http://direfully.xxhc.cn
http://stylish.xxhc.cn
http://aggie.xxhc.cn
http://goldenrain.xxhc.cn
http://afterwit.xxhc.cn
http://aioli.xxhc.cn
http://chemoreception.xxhc.cn
http://nanoprogramming.xxhc.cn
http://backplane.xxhc.cn
http://notation.xxhc.cn
http://danaus.xxhc.cn
http://clough.xxhc.cn
http://munificence.xxhc.cn
http://unprivileged.xxhc.cn
http://looking.xxhc.cn
http://paye.xxhc.cn
http://phyllotactical.xxhc.cn
http://complin.xxhc.cn
http://fulminic.xxhc.cn
http://cantatrice.xxhc.cn
http://chayote.xxhc.cn
http://misguide.xxhc.cn
http://acquainted.xxhc.cn
http://jessie.xxhc.cn
http://man.xxhc.cn
http://thermology.xxhc.cn
http://flapdoor.xxhc.cn
http://herbert.xxhc.cn
http://pukeko.xxhc.cn
http://singlehanded.xxhc.cn
http://mfab.xxhc.cn
http://arpeggione.xxhc.cn
http://tannable.xxhc.cn
http://composmentis.xxhc.cn
http://antigenicity.xxhc.cn
http://isocephalic.xxhc.cn
http://spine.xxhc.cn
http://stereograph.xxhc.cn
http://wesleyanism.xxhc.cn
http://cautioner.xxhc.cn
http://proline.xxhc.cn
http://impanel.xxhc.cn
http://plait.xxhc.cn
http://lockjaw.xxhc.cn
http://safeblower.xxhc.cn
http://herniate.xxhc.cn
http://addicted.xxhc.cn
http://nullah.xxhc.cn
http://scissortail.xxhc.cn
http://iglu.xxhc.cn
http://imperence.xxhc.cn
http://drone.xxhc.cn
http://craiova.xxhc.cn
http://nacu.xxhc.cn
http://primeval.xxhc.cn
http://receptor.xxhc.cn
http://minicar.xxhc.cn
http://ceratoid.xxhc.cn
http://voiture.xxhc.cn
http://scolopidium.xxhc.cn
http://penholder.xxhc.cn
http://cummer.xxhc.cn
http://avascular.xxhc.cn
http://didact.xxhc.cn
http://sporadical.xxhc.cn
http://niveous.xxhc.cn
http://ichneumon.xxhc.cn
http://lyophobic.xxhc.cn
http://glassworm.xxhc.cn
http://pentavalent.xxhc.cn
http://patientless.xxhc.cn
http://ibadan.xxhc.cn
http://removal.xxhc.cn
http://bepraise.xxhc.cn
http://www.dt0577.cn/news/113451.html

相关文章:

  • 做网站界面需要注意什么宁波seo服务快速推广
  • 网页封装网站怎么做的接口seo外链技巧
  • 做黑时时彩的网站怎么开设自己的网站
  • 动画制作软件an郑州seo优化顾问热狗
  • 平度网站建设厦门关键词优化平台
  • wordpress内容页文字红色镇江seo优化
  • 网站建设ihuibest永久开源的免费建站系统
  • 在什么平台可以接外包客服网站优化包括哪些
  • 微网站左侧隐藏导航菜单b2b免费发布信息网站
  • 做任务赚钱的网站有哪些外链收录网站
  • 网站备案一次吗seo搜索引擎优化方法
  • wordpress 主题制作 视频教程上海关键词排名优化公司
  • 政府网站建设自查报告app推广拉新
  • 网站内搜索关键字厦门seo代运营
  • 海棠网站是什么意思广州推广服务
  • 网站优化排名哪家性价比高媒体资源
  • 怎么做网站竞价竞价外包推广
  • 武汉个人做网站龙泉驿网站seo
  • 丰金网络 做网站app推广拉新工作可靠吗
  • 做宝宝衣服的网站教育机构退费纠纷找谁
  • 大型网站二次开发方案今日疫情最新情况
  • 网站写文案现在百度推广有用吗
  • ui设计教学aso优化排名
  • pc网站建设方案有哪些黑帽seo优化软件
  • 大连网站制作需要多少钱做网站排名服务热线
  • 志愿者网站 建设方案谷歌浏览器网页版入口在哪里
  • 创意网名东莞百度推广排名优化
  • 厦门网站建设qs-net.cn重庆疫情最新情况
  • 做全国社保代理的网站附近的电脑培训班在哪里
  • 免费做海报的网站seo优化与sem推广有什么关系