当前位置:网站首页>C regular expression
C regular expression
2022-06-12 15:59:00 【Sunshine in front of heart】
file
Common static methods
Regex.IsMatch(input, regular) Judge input match regular
Regex.Match(input, regular) Return to match regular One of the first Match
Regex.Matches(input, regular) Return to match regular The multiple Match
example
string delimited = "[^a-x]";
string input = "abcdefghijklmnopqrstuvwxyz";
Debug.Log(Regex.IsMatch(input, delimited));// Judge whether it matches true
Debug.Log(" Single :" + Regex.Match(input, delimited));// Single match result y
foreach (Match match in Regex.Matches(input, delimited))// Multiple matching results
{
Debug.Log(" Match results :" + match.Value);//y z
}
边栏推荐
- Dongmingzhu talks about batteries: the most essential thing is safety
- Step by step steps to create an ABAP program with a custom screen
- Apache Kylin 历险记
- sql server 2008 的导入导出步骤
- Tensorflow function: tf nn. in_ top_ k()
- Servlet connects to database to realize user login function
- Great God cracked the AMD k6-2+ processor 22 years ago and opened the hidden 128KB L2 cache
- 【架构优化过程思考】如何构建技术方案影响的评估能力
- From K-means to capsule
- nohup 命令使用
猜你喜欢

Scanpy(六)空间转录组数据的分析与可视化

The small flying page is upgraded to be intelligent and the bug repair is faster

Saga体系结构模式:微服务架构下跨服务事务的实现

华为设备配置CE双归属

小程序:如何在插件中获取用户手机号

< 山东大学软件学院项目实训 > 渲染引擎系统——基础渲染器(六)

Apache kylin Adventure

Idea Encyclopedia (Reprinted)

Why doesn't Alibaba recommend MySQL use the text type?

Writing code can also be classified as "manual" or "vulgar", and we should be good at finding good hands!
随机推荐
Solutions to some problems of scuacm22 retreat competition before summer training
go net库(待续)
Find the number of cells (connectivity map, wide search, deep search)
FPGA (III) trigger and latch
< 山东大学软件学院项目实训 > 渲染引擎系统——基础渲染器(七)
nohup 命令使用
MySQL blob and text types
The nohup command uses
IGMP报文(TCP/IP详解卷1/卷2)
The common hand, the original hand and the excellent hand from the sum of Fibonacci sequence
使用CSDN-markdown编辑器
Project training of Software College of Shandong University rendering engine system basic renderer (VII)
SCUACM22暑假集训前劝退赛部分题解
任务 水果炸汁机 0611
Escape rules and examples of go
How to use grafana to easily realize OVL data visualization
位运算例题(待续)
C language partition bin file program
[practical case of light source] UV-LED curing innovation makes the production line more smooth
Example of bit operation (to be continued)