Regular Expressions 101

Variable instantiation

Open Workspace
  • PCRE (Legacy)
  • Match
1

Regular Expression

/
^(\s*\w+\s*=\s*new\s+\w+\s*\([^)]*\)\s*\;*\s*)$
/

Description

This matched any instantation of variable in some programming languages

Submitted by ZKrolikowski