Yep, that's me answering question at 8am :D

I think this replace expression cannot be combined in one call of function, because you are using different string as replacement. And for what I know, there isn't any way to fork replacement depending on matched regexp (maybe only with some regexp subgroup magic which would make expression very hard to understand)

I hope that I answered your real question this time

    hoppo

(in case message arrives more than once, it's due to bad connection I have right now)

On 9. 9. 2011 20:05, Gayathri wrote:
Thanks Hoppo for the suggestions.
I have the result i want.. but was wondering if multiple regexp_replace can be coded in a single regexp_replace statement? Is there a way to do that? if not.. i am fine as of now...


On Thu, Sep 8, 2011 at 11:03 PM, Andrej Hopko <[email protected] <mailto:[email protected]>> wrote:

    Well obviously you just did it :D

    if you try to run the query it works

    and if you put som logic into it - why should not varchar2 result
    of one function be accepted as varchar2 parameter in another (or
    the same) function



    On 9. 9. 2011 7:43, Gayathri wrote:

        Hi All,

        Can 2 regexp_replace be combined into one?

        select regexp_replace(regexp_replace('[t1][t2]', '^\[|\]$',
        '||'),'\]\[', '||''][''||') from dual;


        Thanks in advance
-- You received this message because you are subscribed to the Google
        Groups "Oracle PL/SQL" group.
        To post to this group, send email to
        [email protected]
        <mailto:[email protected]>
        To unsubscribe from this group, send email to
        [email protected]
        <mailto:[email protected]>
        For more options, visit this group at
        http://groups.google.com/group/Oracle-PLSQL?hl=en


-- You received this message because you are subscribed to the Google
    Groups "Oracle PL/SQL" group.
    To post to this group, send email to [email protected]
    <mailto:[email protected]>
    To unsubscribe from this group, send email to
    [email protected]
    <mailto:[email protected]>
    For more options, visit this group at
    http://groups.google.com/group/Oracle-PLSQL?hl=en


--
You received this message because you are subscribed to the Google
Groups "Oracle PL/SQL" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Oracle-PLSQL?hl=en

--
You received this message because you are subscribed to the Google
Groups "Oracle PL/SQL" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Oracle-PLSQL?hl=en

Reply via email to