Regular Expressions 101

Fix property names with spaces generated by odata2poco

Open Workspace
  • PCRE (Legacy)
  • Match
0

Regular Expression

/
(?:^\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