Chinese Kongfu - 9cbs.com-WellCMS
  •  Home
  •  Tech
  •  Login
6miu盘搜
  1. Tech
  2. Regular expression problem collection

Regular expression problem collection

xiaoxiao2021-03-06  39

I would like to ask questions about regular expressions

Can you search this in a match?

Such as:

(possibly there are many times in the web page)

(there may be many times in the web page, but may not appear in , is in the

123

456

(there may be many times in the web page, but may not appear in , is also in the

789

My purpose is to find all the matching items, and then obtain the value between as shown in the example

In this case, the return value is 123456. Ignore for in

Special statement: To ensure the order of display of web pages, the method of replacing the matching position should be used.

I don't know how this regular expression should be written?

Thank you first!

转载请注明原文地址:https://www.9cbs.com/read-42358.html

9cbs

New Post(0)
CopyRight © 2020 All Rights Reserved
Processed: 0.063, SQL: 9