Regular Expressions 101

Library entries

if, else if, else condtion match

Vote

6

Regular Expression
javascript

/
if\s*\((.+?)\)\s*{(.*?)}\s*?(else\s*?if\s*?\((.+?)\)\s*?{.*?})?\s*?(else\s*?{(.*?)})?
/

Description

Loading markdown...
Submitted by Ivan Jakesevic - 7 years ago