I\'m trying to use [[:>:]] in my regex but they are not accepted while other character classes e.g. [[:digit:]] or [[:word:]] are.
[[:>:]]
[[:digit:]]
[[:word:]]
You can use \b(?<=d) or \b(?=d) instead. In any case PCRE engine converts [[:<:]] to \b(?=\w) and [[:>:]] to \b(?<=\w) before starting the match.
\b(?<=d)
\b(?=d)
[[:<:]]
\b(?=\w)
\b(?<=\w)