Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

REGEXP_REPLACE

Posted on 2006-11-03
3
928 Views
Last Modified: 2008-02-01
select regexp_replace('ara,felosa,with the -and the *and the ^ and the RT','[[:punct:]]','/[[:punct:]]') from dual;

Hi is it possible in regexp_replace to replace lets say word 'about' with ' \about' and BT with '\BT' in one shot.
Thats where in input string it finds word 'about' replace it with '\about' and 'BT' with '\BT' in one regexp_replace statement
Please reply ASAp.

Thanks
0
Comment
Question by:avi_ny
3 Comments
 
LVL 1

Accepted Solution

by:
Rajeshsg earned 500 total points
ID: 17888614
select regexp_replace('ara,felosa,with the -and the *and the ^ and the RT','%[[:alpha:]]%','%\[[:alpha:]]%') from dual;

Can you try with this?

Thanks,
Rajesh


0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
Read about achieving the basic levels of HRIS security in the workplace.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question