How can I use regular expressions to match the content?

Source: Internet
Author: User
Ask how to use regular expressions to match & lt; formclass & quot; id & quot; loginform & quot; method & quot; post & quot; onsubmit & quot; returnloginform (); & quot; & gt; & nbsp; & lt; divs


========================================================== ===
The above content:

1.


Script function captchareload2 (){
$ ("# Captchaimglogin"). attr ('src', 'Les les/captcha. php? R = login & x = 34 & y = 75 & z= 119 &? Newtime = '+ (new Date (). getTime ());
} Script

, And use regular expression matching.

2. whether or not the matching content contains the content of, including the output truth, but not the output false.

========================================================

I am not familiar with it. please help me.

------ Solution --------------------
PHP code
$ S = <

. + (? = Javascript: void \ (0 \). + <\/script> <\/p>/S', $ s, $ m); print_r ($ m );

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.