Regular Expressions 101

Sponsors

Library entries

0
pcre

腾讯视频

从元素解析视频URL
Submitted by anonymous - a month ago
0
pcre

dateformat classique fr

12/10/1991
Submitted by anonymous - a month ago
0
pcre

Wrap word in json with quotes

Wrap word in json with quotes
Submitted by anonymous - a month ago
0
pcre

模式测试

测试贪婪/非贪婪模式
Submitted by anonymous - a month ago
0
pcre

Network Address

-
Submitted by anonymous - a month ago
0
javascript

Xerox Product Page

regex to match a product page url
Submitted by anonymous - a month ago

CUSTOM JSON RSA KEY PATTERN - ECMASCRIPT

Vote

0

Regular Expression
javascript

/
(\s*\{(?:\s*"Modulus"\s*:\s*"[a-zA-Z\d\+\/\\]+={0,2}"\s*,()|\s*"Exponent"\s*:\s*"[a-zA-Z\d\+\/\\]+={0,2}"\s*,()|\s*"P"\s*:\s*"[a-zA-Z\d\+\/\\]+={0,2}"\s*,()|\s*"Q"\s*:\s*"[a-zA-Z\d\+\/\\]+={0,2}"\s*,()|\s*"DP"\s*:\s*"[a-zA-Z\d\+\/\\]+={0,2}"\s*,()|\s*"DQ"\s*:\s*"[a-zA-Z\d\+\/\\]+={0,2}"\s*,()|\s*"InverseQ"\s*:\s*"[a-zA-Z\d\+\/\\]+={0,2}"\s*,()|\s*"D"\s*:\s*"[a-zA-Z\d\+\/\\]+={0,2}"\s*,()){8}\s*\}\s*\2\3\4\5\6\7\8\9)|(\s*\{(?:\s*"\s*Modulus\s*"\s*:\s*"[a-zA-Z\d\+\/\\]+={0,2}"\s*,()|\s*"\s*Exponent\s*"\s*:\s*"[a-zA-Z\d\+\/\\]+={0,2}"\s*,()){2}\s*\}\s*\11\12)
/
gm

Description

Loading markdown...
Submitted by anonymous - 2 years ago