Regular Expressions 101

Sponsors

Library entries

0
java

phone number matcher

phone number matcher
Submitted by anonymous - a month ago
0
java

LinkedIn Profile Url

LinkedIn Profile Url
Submitted by Morons - 16 days ago
0
java

lat cyr letters

only lat and cyr letters
Submitted by anonymous - 14 days ago
0
java

时间

时间
Submitted by 旧信 - 4 days ago

if else parser part 1

Vote

0

Regular Expression
java

"
(?<if>#if\((?<ifContents>[^\)]+)\))(?<ifResult>[\s\S]+?)(?=#elif|#else|#end)(?<elIf>#elif[\s\S]+?(?=#else|#end))?(?<else>#else([\s\S]+?(?=#end)))?[\s\S]*?#end
"
ig

Description

Loading markdown...
Submitted by Rubeste - 5 months ago