Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

null in Regexp

sunil_dbaDec 2 2010 — edited Dec 2 2010
I am trying to extract 2 nd value in the the sting sunil;1000;kumar
SQL> select regexp_substr('sunil;1000;kumar','[^;]+',1,2) from dual;

REGE
----
1000
This works fine.
But, when the second field is null, ie., sunil;;kumar
I want the out put to be null only.
SQL> select regexp_substr('sunil;;kumar','[^;]+',1,2) from dual;

REGEX
-----
kumar
How can get this.

Comments

843834
i know the beta won't work with dtds. Is this feature
gone for good from jaxb or just the beta? I read the
FAQ http://java.sun.com/xml/jaxb/faq.html. and it
seems like it says dtd is gone, but doesn't come out
and clearly say so.
Hi,
The dtd feature support is no longer there in JAXB. The beta release does not support dtds and also the FCS will not be supporting it.

Thanks,
Bhakti Mehta
Sun Microsystems Inc.

1 - 1
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Dec 30 2010
Added on Dec 2 2010
3 comments
8,892 views