There are two lines

price-new "> 123131,
price-old "> 2123423

how to write a regular season so that the price is taken only from price new and at the same time skips the price-old value?

  • Pattern p = Pattern.compile ("price-new \"> (\\ d +) "); - not this? - Alexander Potashev

1 answer 1

Try this example : (?<=price-new">)(\d+)