If my columns(attribute9) contains the field as Pika~Chu~(040)-121-12334~pika78@pika.com
the how can I extract the values like
contact = Pika Chu
phone_nbr = (040)-121-12334
email = pika78@pika.com
I had written the code like
regexp_replace(attribute9, '[^()[:digit:]- ]', '') phone_nbr,
regexp_substr (attribute9,'[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}') email,
replace(SUBSTR (attribute9 ,0,(INSTR (attribute9 , '(', -1)) - 1),'~',' ') contact
Here in phone_nbr I am getting all the digits that were in email(i.e 78) too..How can I extract just between the values (~,~)