Continued from Question #Q_21781278 - regarding a function to replace text within a string continued

How do I modify this code to include the quote in Call ######## Enter Pin "3000".  I need to eliminate the quotes surrounding the number and replace it with ####.

SomeVar = RegExpReplace(RegExpReplace(RegExpReplace(SomeString, "http://[^ ]*", "http://", True, False), "[\d\.\-\(\)]{7,}", "##########", True, False), "\d{4}", "####", True, False)

Thanks,

Karen
Karen SchaeferBI ANALYSTAsked:
Who is Participating?
 
Patrick MatthewsCommented:
Hi Karen,

Replace the pattern string "\d{4}" with the pattern string "[""\d]{4,6}"

Regards,

Patrick
0
 
Patrick MatthewsCommented:
Karen,

BTW, when you post a new question that draws on previous questions, it is a good idea to add a link to the past question(s).
I knew what was going on, but other Experts are probably scratching their heads and thinking, what the heck is RegExpReplace?
That's not a native function?!?

:)

Regards,

Patrick
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.