(
.*?<\/p><\/blockquote>)?
I want to match this piece of content, but this content
.*?<\/p><\/blockquote> is dispensable.
But what's in the back? It's about atoms, it means 0 or 1 atoms, and the front is not an atom but a string.
How to achieve it?
Reply to discussion (solution)
Add a choice
(
. *?<\/p><\/blockquote>|. *)?
Add a choice
(
. *?<\/p><\/blockquote>|. *)? The test, the error.
don't know what you're going to do?
don't know what you're going to do?
I want to match this content
Middle is content
But this paragraph There may be content, there may not be. That's it.
What does that mean?
preg_match_all ('/(BB)? ( c+)/', ' ABBCCC ', $r);p rint_r ($r);p Reg_match_all ('/(BB)? (
c+)/', ' ABDCCC ', $r);p Rint_r ($r);
What does that mean?
preg_match_all ('/(BB)? ( c+)/', ' ABBCCC ', $r);p rint_r ($r);p Reg_match_all ('/(BB)? ( c+)/', ' ABDCCC ', $r);p Rint_r ($r);
No. If you can't speak clearly, you can solve it by other means first. Thank you.