Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the skills of linking replacement functions with regular expressions

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the regular expression link replacement function skills, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, let the editor take you to know about it.

The techniques for linking replacement functions with regular expressions are as follows:

1)

The character following a character of any length before a string.

Replace with a character after a character of any length.

2)

The character following a character of any length before a string.

Replace with a character after a character of any length.

3) if the above is not the case, delete the link directly

The character following a character of any length before a string.

Replace with a character after a character of any length.

The style of the function is as follows, help write the regular expression, thank you.

Function ScriptHtml (Byval ConStr,FType) Dim Re Set Re=new RegExp Re.IgnoreCase = true Re.Global=True Select Case FType Case 1 Re.Pattern= "regular expression" ConStr=Re.Replace (ConStr, ") Case 2 Re.Pattern=" regular expression "ConStr=Re.Replace (ConStr,") Case other End Select ScriptHtml=ConStr Set Re=NothingEnd Function Thank you for reading this article carefully I hope the article "what are the skills of regular expression link replacement function" shared by the editor will be helpful to you. At the same time, I also hope that you will support and pay attention to the industry information channel, and more related knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report