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

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -