Regex add space to camelCase - but not if a trailing upperCase letter exists -


so i've found - working code sample

\\b[a-z])", " $1"

however don't want space out things "accountuserid" "account user d" - no spacing if trailing uppercase letter exists

can show me better approachable way - possibly using capturing groups , negative digit identifier.

thanks!

if lookbehind supported can use:

(?<![a-z])\b(?=[a-z]) 

regex demo

and replace " "


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -