× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Javier,

You cannot put $1 in the 3rd parameter to REGEX_REPLACE -- that parameter is an integer, it can only contain numbers.

Also, the [A-Za-z] would be correct -- these are the characters you wish to replace, and they are to be replaced with a '' (empty string). So the letters would be removed.

Changing it to have a caret in front [^A-Za-z] would do the opposite of what he wants -- it'd remove anything aside from A-Z.

Please take a moment to test out your suggestions before posting them. I understand that it is easy for you to get confused (it happens to everyone), but it's even worse for someone who hasn't done it before, so taking a moment to verify your thoughts before posting can save people a lot of time.

-SK


On 7/11/2022 11:39 AM, Javier Sanchez wrote:
I think what's wrong is probably the last parameter which should be $1 not
just 1.
The other thing is that what you may need is to remove the characters, so
you should put a caret character before a set l[A-za-z]'.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.