Regular Expressions 101

Community Patterns

Expanded Visual Basic Properties

2

Regular Expression
PCRE (PHP <7.3)

/
Public(?: ReadOnly)? Property (?<prop>.*?)\(\) As [a-zA-Z]*(?: Implements )?.*? End Property
/
gis

Description

I've been using this regex to get a list of expanded properties (specifically the property names from the 'prop' capture group) from VB code that is used as input in a code converter for a project at work.

Submitted by Timothy Smith - 8 years ago