How to extract an element from a repeating element with xpath?

<div class="container">
  <div class="col-12 col-sm-3">
    <p class="title">

001

</div> <div class="col-12 col-sm-3"> <p class="title">

999

</div> <div class="col-12 col-sm-3"> <p class="title">

321

</div> </div>

if I want to extract the contents of the "numbered" compatriots mentioned above, how do I extract them?

//p[p=""].followwing-sibling/text()

doesn"t seem to be successful.

Nov.05,2021

xpath:
/ / p [text () = "number"] / following-sibling::p [1]
for example: python+selenium gets text:
driver.driver.find_element_by_xpath (/ / p [text () = "number"] / following-sibling::p [1]). Text

Menu