I want from this text with CamelCase search words to generate. I do not know if that's possible only with RegEx. but I'm already close. I use it in the scripting language AutoHotkey (https://autohotkey.com/docs/misc/RegEx-QuickRef.htm) .
data: reCommended for future AutoHotkeyReleases.
regEx: (((\b[^A-Z\s]*)?([A-Z][a-z]+)|([\W_-]?[a-z]+)))
( https://regex101.com/r/NgRmXZ/2 )
expected Groups:
reCommended
re
Commended
for
future
Auto
Hotkey
AutoHotkey
HotkeyReleases
Releases
AutoHotkeyReleases.
i also tried, but not works for me:
(?=\p{Lu}\p{Ll})|(?<=\p{Ll})(?=\p{Lu})
from Splitting CamelCase with regex
(([a-z]*)(?<=[a-z])((?:[A-Z])[a-z]+))
https://regex101.com/r/NgRmXZ/3
(?<=[a-z])([A-Z])|(?<=[A-Z])([A-Z][a-z])
https://regex101.com/r/NgRmXZ/4
((?<!^)([A-Z][a-z]+|(?<=[a-z])[A-Z][a-z]+))
https://regex101.com/r/B5vXaZ/1
I have started to implement my prototyp already here: https://gist.github.com/sl5net/ba5aef19f44fe68204ccb6c96e7c96e0