#1 Today 10:27

visusys
Member
Registered: 2021-10-16
Posts: 23

Regex word boundary metachar is not working in a character set

Regex:

(?<=[a-z])(?=[A-Z])|(?<=[0-9])(?=[A-Z](?![_\b]))|(?<=[A-Z])(?=[A-Z][a-z](?![a-z]))

Error:

YwGQMuA.png

Any chance this could get implemented in a future release?

Offline

#2 Today 20:16

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,480

Re: Regex word boundary metachar is not working in a character set

No, "\b" is a zero-width assertion, it can't be inside a character set "[...]".

Try the alternation operator "_|\b".

Offline

Board footer

Powered by FluxBB