Perl like regular expression in Oracle DB

There's regular expression support in Oracle DB

Using Regular Expressions in Database Applications
Oracle SQL PERL-Influenced Extensions to POSIX Standard
But '\b' is not supported which I believe is quite wideliy used in perl and/or other tools

perlre - perldoc.perl.org
\b Match a word boundary
So, I experimented with '\W' which is non-"word" character
When combined with beginning-of-line and end-of-line like below, I think it works exactly the same as '\b'
SELECT * FROM TAB1 WHERE regexp_like(TEXTCOL1, '(^|\W)a_word($|\W)', 'i')




Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

The views expressed on this blog are my own and do not necessarily reflect the views of Oracle.

Search

Archives
« May 2015
SunMonTueWedThuFriSat
     
2
3
5
8
9
10
12
13
14
16
17
23
24
30
31
      
Today