当前位置:网站首页>An expression that regularly matches one of two strings
An expression that regularly matches one of two strings
2022-07-03 21:22:00 【Teng Qingshan】
When you need to match one of multiple strings , Such as : matching abc|def One of the two strings is captured using a non tuple .
The syntax of non tuple capture is :
(?:exp)
For example, matching all the pictures in a web page url, And the picture of url Usually, the jpg,png End of equal suffix , The following code demonstrates how to match pictures url
#(?:jpg|png|gif) Match one of the three strings
边栏推荐
- jvm jni 及 pvm pybind11 大批量数据传输及优化
- Visiontransformer (I) -- embedded patched and word embedded
- @Scenario of transactional annotation invalidation
- Apprentissage intensif - notes d'apprentissage 1 | concepts de base
- Idea shortcut word operation
- 强化學習-學習筆記1 | 基礎概念
- Summary of common operation and maintenance commands
- 2022-2-14 acwing1027 grid access
- 电子科技大学|强化学习中有效利用的聚类经验回放
- Kubernetes abnormal communication network fault solution ideas
猜你喜欢
[secretly kill little buddy pytorch20 days -day02- example of image data modeling process]
Redis data migration (II)
Day 9 HomeWrok-ClassHierarchyAnalysis
leetcode-540. A single element in an ordered array
@Transactional注解失效的场景
Single page application architecture
Collections SQL communes
一台服务器最大并发 tcp 连接数多少?65535?
鹏城杯 WEB_WP
MySQL——JDBC
随机推荐
Imitation Netease cloud music applet
Redis data migration (II)
XAI+网络安全?布兰登大学等最新《可解释人工智能在网络安全应用》综述,33页pdf阐述其现状、挑战、开放问题和未来方向
Selenium has three waiting methods (forced waiting, implicit waiting, and display waiting)
Nmap and masscan have their own advantages and disadvantages. The basic commands are often mixed to increase output
treevalue——Master Nested Data Like Tensor
For in, foreach, for of
常用sql集合
Great gods, I want to send two broadcast streams: 1. Load basic data from MySQL and 2. Load changes in basic data from Kafka
Discussion Net legacy application transformation
90 後,辭職創業,說要卷死雲數據庫
Rhcsa third day notes
Leetcode daily question 540 A single element in an ordered array Valentine's Day special article looking for a single dog in a pile of lovers ~ the clown is myself
Custom view incomplete to be continued
Day 9 HomeWrok-ClassHierarchyAnalysis
Visiontransformer (I) -- embedded patched and word embedded
技术管理进阶——如何在面试中考察候选人并增大入职概率
Transformer structure analysis and the principle of blocks in it
Mysql database ----- common commands of database (based on database)
What if the Flink SQL client exits and the table is emptied?