How to find regular expressions _ regular expressions for non-Chinese characters except numbers and letters in an Oracle database

Source: Internet
Author: User

A recent project has a need for a regular expression in an Oracle database that requires a non-Chinese character other than a number or letter
Replace all characters except letters, numbers, kanji with null if you have the following fields
' Asdfsad,,; ' ()!@123234#$%^&* (i w is e-Chinese .../\[]:: "" one person "

Finally get the value: asdfsad123234 I am a Chinese person

Select Fn_reg_replaceother (' Asdfsad,,;) ()!@#$%^&* (I am?) Chinese .../\[]:: ' "one person, ' regular expression Required, '" from dual;

Thank you. The following answers should not be posted:
(\s) | (\,)| (\,) | (\.)| (\。 )| (\:)| (\:) | (\;) | (\;)| (\)) | (\)) | (\ () | (\))| (\()| (\ ') | (\')| (\'')| (\")| (\ ") | (\ ") | (\[)| (\]| (\!)| (\! )| (\@)| (\#)| (\%)| (\%)| (\^)| (\&) | (\*)| (\¥) | (\$)| (\/)| (\\)| (\?)| (\? ))

------Solution--------------------

Select Regexp_replace (' Asdfsad,,;) ()!@123234#$%^&* (i w is e-Chinese .../\[]:: "" one person "
, ' [[:p unct:]| [: blank:]| [: space:]| [: Cntrl:]] ', '
From dual
;

Regexp_replace (' Asdfsad,,;)
-----------------------------

asdfsad123234 i W is e Chinese one person

Well, this article is the end of the content, hope to be useful to everyone.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.