Regular Expressions 101

Community Patterns

Fix property names with spaces generated by odata2poco

0

Regular Expression
PCRE (PHP <7.3)

/
(?:^\s*(?:[\w<>]+\s+){2}(?!\w+\s\{get;set;}.*$)|\G)\K(\w+)(\h*)(?=.*\s\{get;set;}.*$)
/
mg

Description

Run in notepad++, replace with \u$1

Submitted by anonymous - a year ago