Hello everyone:
Want to ask
Now there's this kind of output
"I'm in
Shanghai
of Pudong
Somewhere
"
By what means can we get
What's in the tag?
The result of the desired output is
Shanghai
Somewhere
Above, thank you
Reply to discussion (solution)
$s = "I am inShanghai
of PudongSomewhere
";p Reg_match_all (' #(.+)
#U ', $s, $m);p rint_r ($m [1]);
Array
(
[0] = Shanghai
[1] = somewhere
)
$s = "I am inShanghai
of PudongSomewhere
";p Reg_match_all (' #(.+?)
# ', $s, $r);p rint_r ($r [1]);
Array
(
[0] = Shanghai
[1] = somewhere
)
$s = "I am inShanghai
of PudongSomewhere
";p Reg_match_all (' #(.+)
#U ', $s, $m);p rint_r ($m [1]);
Array
(
[0] = Shanghai
[1] = somewhere
)
Thank you very much
$s = "I am inShanghai
of PudongSomewhere
";p Reg_match_all (' #(.+)
#U ', $s, $m);p rint_r ($m [1]);
Array
(
[0] = Shanghai
[1] = somewhere
)
Thank you very much.