PHP regular expression problems

Source: Internet
Author: User
1. how can I correctly match the bookmarked backup file (in html format) exported by Google and Firefox to correctly read the parent-child relationship between the category directory and bookmarks? 2. exported backup bookmarks: {code ...} try to match with a regular expression, but the learning is not refined, it is always impossible to get the correct... 1. how can I correctly match the bookmarked backup file (in html format) exported by Google and Firefox, and correctly read the parent-child relationship between the category directory and bookmarks?

2. Format of exported backup bookmarks:


  
  
Technical webpage

Hacker

Manual SQL injection
Burp Suite detailed tutorial-detailed description of Intruder module-software tools-

Android development

Adb not responding you can wait more-Android mobile development technical article _ mobile development-red/black Alliance

Code sharing list-PHP-Open Source Chinese community
Yibai tutorial-focus on IT tutorials and instances

XAMPP Installers and Downloads for Apache Friends
XAMPP Installers and Downloads for Apache Friends
XAMPP Installers and Downloads for Apache Friends

I tried to use regular expressions for matching, but I was not refined. I was always unable to correctly obtain the upper-and lower-level relationships. how can I help you?

Reply content:

1. how can I correctly match the bookmarked backup file (in html format) exported by Google and Firefox to correctly read the parent-child relationship between the category directory and bookmarks?

2. Format of exported backup bookmarks:


  
  
Technical webpage

Hacker

Manual SQL injection
Burp Suite detailed tutorial-detailed description of Intruder module-software tools-

Android development

Adb not responding you can wait more-Android mobile development technical article _ mobile development-red/black Alliance

Code sharing list-PHP-Open Source Chinese community
Yibai tutorial-focus on IT tutorials and instances

XAMPP Installers and Downloads for Apache Friends
XAMPP Installers and Downloads for Apache Friends
XAMPP Installers and Downloads for Apache Friends

I tried to use regular expressions for matching, but I was not refined. I was always unable to correctly obtain the upper-and lower-level relationships. how can I help you?

It can only be said that using regular expressions in this form is not as good as using DOM for parsing ......

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.