I\'m trying to change a value in oracle with regex:
input: 13/10/2016 10:10:10
output: 13/10/2016 10:10:10
Since the \s
is a Perl-like construct and Oracle regex is POSIX based, it is safer to use the POSIX character class [:space:]
(to include vertical whitespace) or [:blank:]
(to only match spaces and tabs).
E.g. use
([[:space:]0-9/:]+)
Remember to always use POSIX character classes inside bracket expressions (so, to match one alpha character, use [[:alpha:]]
, i.e. the name of the class must be inside colons and double square brackets).