Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
^\s*#\s*(define|DEFINE)\s+(?P<name>\w+)(?P<params>\([\w\,\s]+\))?\s+(?P<body>.*)(?:(//)|(\*/)|(/\*))?
"
gmi

Description

parsing armas sqf preprocessor defines

Submitted by anonymous - 2 years ago