Regular Expressions 101

Sponsors

Library entries

0
pcre

amazIng regex

super
Submitted by anonymous - 5 hours ago
0
golang

super regex

Get every word ending with dot using Regex/VBA
Submitted by anonymous - 6 hours ago
0
pcre

Only if before

Only if needle is before target
Submitted by anonymous - 2 days ago
0
javascript

Currency

Currency
Submitted by jerryd - 3 days ago
0
python

parse sqf defines

parsing armas sqf preprocessor defines
Submitted by anonymous - 6 days ago
0
python

Test molecule coverage

Regex to test covered tests
Submitted by Florian Toulemont - 8 days ago
0
python

US Stock Exchange symbols

Regex for Telegram Bot
Submitted by Lucas Zurverra - 8 days ago

bkengine 多行宏词法分析 添加了分组参数

Vote

0

Regular Expression
python

"
(?P<macroName>\[\w+\s)(?#匹配宏名称)|(?P<paramName>\w+(?=\=))(?#匹配参数名称)|(?P<intValue>(?<=\=)\d+)(?#匹配int参数)|(?P<intArrayValue2>(?<=\=)\[\d+,\d+\])(?#匹配长度为2的int数组)|(?P<intArrayValue4>(?<=\=)\[\d+,\d+,\d+,\d+])(?#匹配长度为4的int数组)|(?P<stringValue1>\"[a-zA-Z\._0-9\s]+\")(?#匹配使用双引号的string参数)|(?P<stringValue2>\'[a-zA-Z\._0-9\s]+\')(?#匹配使用单引号的string参数)|(?P<var>(?<=\=)\w+)(?#匹配变量型参数)
"
gm

Description

Loading markdown...
Submitted by 小沙盒工作室 - 2 months ago