How to read this regular.



  • preg_match('/Text: .+, (\d+x\d+)[^\d]/si', $input, $output);
    

    Specifically: I don't understand what's being used. [^\d] after (\d+x\d+), what gives you this, as I understand, denial?



  • Text: .+, (\d+x\d+)[^\d]/si
    
    • Text: - ordinary text with a lacuna at the end
    • .+ - an inaccurate number of symbols, apart from the rupture symbol

      lines

    • , - the usual lacunae comma
    • \d+ - inaccurate number of figures
    • x - the usual "x" symbol.
    • \d+ - inaccurate number of figures
    • [^\d] - any symbol other than numbers
    • s search in one line (without the rupture symbol)
    • i - not sensitive to the register.

    http://regexr.com/3cdji



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2