When i need to validate user input in fields it is often necessary to make sure only a limited set of characters is used. Example could be European VAT Numbers, Phone, Container ID Code ... The current REGEXP_SUBSTR Function is not able to match several accurencase of a given pattern in one go. Syntax
Parameters
Samples :
Oracle also has a implementation of it http://download.oracle.com/docs/... See this Question to see more reasons to implement REGEXP_REPLACE |
This is another one of those features that we have discussed within the engineering team on several occassions. I too have had many times that I've wanted to do be able to find a pattern within a string and replace it with a different one. But alas, regular expressions are complicated not only to understand and use but to implement and perform well. As such, this feature is already on the list of possible enhancements to be put into a future release. 1
I agree Mark! Regular expressions are complicated. It's my humble opinion that the purpose of any computer code, wether it be SQL, Java, PHP, Powerbuilder, or any other language, is for HUMANS to read and manage -- not computing systems... it's the systems' job to translate that code into something that they can deal with. While I fully appreciate the power of regex, I hate everything about it... precisely because it's incomprensible for many of us mortals.
(27 Apr '11, 21:01)
Ron Hiner
Obligatory xkcd reference: http://xkcd.com/208/
(27 Apr '11, 23:07)
Graeme Perrow
Replies hidden
...and don't forget to look at the tool tip:)
(28 Apr '11, 03:27)
Volker Barth
2
I should add that this similar topic was discussed as part of this question here, and was noted as part of the formatting enhancement opportunities in CR #728186.
(25 Jan '13, 09:58)
Jeff Albion
|
I second this proposal for similar reasons.