Solutions for writing sscanf regular expressions

Source: Internet
Author: User
Find the regular expression for writing sscanf 697 [] 70-85★4000 RMB, five honors, dear★This is the case for pure task 70.0084, which should be separated into the following 697 [] 70-85 levels★4000 RMB, five honors, dear★Pure task 70.0084 is divided into four parts: PHPcode $ ts = & quot; 697 [] 70-85★Evaluate the regular expression for writing sscanf
697 [Rehearsal Hall] 70-85★4000 RMB, five honors, dear★Pure task 70.0084
The original format is as follows:
697 [Rehearsal Hall] 70-85★4000 RMB, five honors, dear★Pure task 70.0084
Divided into four parts
PHP code
  $ Ts = "697 [Rehearsal Hall] 70-85★4000 RMB, five honors, dear★Pure task 70.0084 "; sscanf ($ ts, how to write here", $ one, $ two, $ three, $ four); echo $ one. "-". $ two. "-". $ three. "-". $ four;

Let's analyze several more pieces of data:
697 [Rehearsal Hall] 70-85★4000 RMB, five honors, dear★Pure task 70.0084
698 [] [S11 honors battlefield graduation] full set of weapons [2-3 days in seconds] 50.0084
700 [] dnf manual [any level-zrespect 2] 40.0024
715 [Rehearsal Hall] [1-80 quick recruitment edition] completed 30.0060 of the total service in the whole region in 2 days
716 [Rehearsal Hall] [1-85 class card 135 yuan] Five Big Bird reputation dear 135.00108


------ Solution --------------------
Print_r ($ jj); paste the result
------ Solution --------------------
Discussion

Chinese characters are displayed normally, but data cannot be displayed cyclically.
PHP code
$ Client = new SoapClient ("http://s.dailiangu.com: 8011/WebLocalData. asmx? WSDL ");
$ P = $ client-> Return_Package (array ('un '=> 'dailiantang', 'Ps' => 'xieyanjobb1306', 'Top ......

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.