Kneeling regular expression!

Source: Internet
Author: User
Find a regular expression !~~~ The regular expression matches Western medicine as follows: & lt; tr & gt; & lt; tdalign = & quot; center & quot; nowrap = & quot; nowrap & quot; & gt; row number 1 & lt;/td & gt; & lt; tdalign = & quot; center & quot; o beg for a regular expression! ~~~
The regular expression matches the content of Western medicine as follows:
Row number 1
A-001
A-002
A-003
Row number 2
A4-001
A-003
A-004

The required field is: Row 1, row 2 ......
And the data in the drs in each row cannot be disordered.

------ Solution --------------------
You didn't clarify what you needed.
------ Solution --------------------
Use preg_replace first Replace

Then, let's do a lot ..

The simplest way .. First use segmentation. And then separate them ..

Good regular expressions .... Sometimes you don't have to use a regular expression to solve the problem.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.