Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Detecting and Removing Special Characters

Status
Not open for further replies.

djtom2000

Programmer
Feb 2, 2002
13
0
0
GB
Hi,

I need to detect when a record is insert and updated in a character based field if the field has any special characters, particularly an apostrophe and remove them?

How would I do this?

e.g. Normal text "Tom's" Stripped out text "Toms"

Thanks
 
select translate('Tom''s', 'a''', 'a') from dual

Gives:

Toms
 
Tom,

If you provide a comprehensive list of the special characters (or ASCII codes) that you want stripped, Dagon or I (or both) will be happy to provide code that does all the stripping you need.

[santa]Mufasa
(aka Dave of Sandy, Utah, USA)
[I provide low-cost, remote Database Administration services: www.dasages.com]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top