title: Non-greedy regex to extract text
body: <p>I'm trying to retrieve the the first part of this text <code>    Book I\n Psalms 1–41\n Psalm 1\n</code> using a non greedy regex <code>(.+)[?</code> but it highlights everything, any help will be appreciated, thanks!</p>
  <p><code>    Book I\n Psalms 1–41\n Psalm 1\n [1] Blessed is the one\n who does not walk in step with the wicked\n or stand in the way that sinners take\n or sit in the company of mockers,\n [2] but whose delight is in the law of the Lord,\n and who meditates on his law day and night.\n [3] That person is like a tree planted by streams of water,\n which yields its fruit in season\n and whose leaf does not wither—\n whatever they do prospers.\n \n [4] Not so the wicked!\n They are like chaff\n that the wind blows away.\n [5] Therefore the wicked will not stand in the judgment,\n nor sinners in the assembly of the righteous.\n \n [6] For the Lord watches over the way of the righteous,\n but the way of the wicked leads to destruction.\n&quot;</code></p>