arc*_*ree 3 regex oracle plsql
我有一个像这样的字符串:
192.168.114.182:SomethingFun-1083:EOL/Nothing Here : MySQL Database 4.12 192.168.15.82:SomethingElse-1325083:All Types : PHP Version Info : 23
我正在尝试在Oracle数据库中选择此项(使用REGEXP_SUBSTR)并在第二个冒号(:)之后获取所有剩余文本.
所以最后,我想得到这些值:
EOL/Nothing Here : MySQL Database 4.12
All Types : PHP Version Info : 23
Run Code Online (Sandbox Code Playgroud)
我试过这些,但它没有发现有效的东西.
REGEXP_SUBSTR(title,'[^:]+',1,3) as Title -- doesn't work if last field has ":"
REGEXP_SUBSTR(title,'(?:[^:]*:)+([^:]*)') as Title
Run Code Online (Sandbox Code Playgroud)
怎么样 REGEXP_REPLACE
REGEXP_REPLACE(title,'^[^:]+:[^:]+:(.*)$', '\1') as Title
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4774 次 |
| 最近记录: |