Topic: SQL*Plus and PL/SQL >> Validate string for special characters.
|
Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property.
You may review the entire Oracle Certification Program Candidate Agreement online Here.
|
|
|
|
| Title: Validate string for special characters. |
| Amar |
Posted: Nov 28, 2005 02:58:01 PM |
Total Post: 1
Joined: Nov, 2005
|
Hi,
I need some assistance with writing a pl/sql procedure to validate a string for special characters. I have Oraccle 9i database and am using oracle 9.0.2 client. I have read about regular expressions validation in 10g but need to implement a task in oracle 9i database. Any ideas would be helpful.
I tried creating a lookup table with the list of all valid characters and then parsing the string one character at a time to see if it belongs to the valid characters list. this works fine but is not elegant so was checking if there was a way of doing regular expression type check in oracle 9i.
Thanks
|
|
|
Vigyan |
| Posted: Nov 28, 2005 04:51:38 PM | |
|
Total Post: 386
Joined: May, 2001
|
I don't think, you can use another method except storing these special characters somewhere in the database or in pl/sql array and comparing it.
Hope it helps.
Vigyan
|
|
|
|
|
| Time Zone: EDT |
Send this thread to your friend |
|
|
|
|
Forum Rules & Description
Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user
|
| |
Get FREE Magazines
|
Top 10 Forum User
|
| Murtuja Khokhar | 857 |
| Mohammed Taj | 746 |
| positive fanatic | 483 |
| Jayanta Sur | 479 |
| Vigyan Kaushik | 386 |
| Gopu Gopi | 333 |
| Gitesh Trivedi | 322 |
| Vinoth Kumar | 264 |
| neeraj sharma | 258 |
| Ramesh Jois | 246 |
|
|