Regex – Matching the shortest string available

I would like my regex to return "Mary E. Unruh" only from the following text block, but for some reason, my regex keeps returning a longer string.

I am including my link to the regex below.

Regexp:

(?i:given by|in a certain mortgage given by|in a certain Mortgage given by|certain mortgage and security agreement given by|in a certain Mortgage by |a certain Mortgage was executed by|a certain Mortgage Deed given by ) (.+?) (?i:, \("the Mortgagor|, as mortgagor|\(the "Mortgagor|dated|to)

Text:

"NOTICE OF DEFAULT AND FORECLOSURE SALE WHEREAS,

NOTICE OF DEFAULT AND FORECLOSURE SALE WHEREAS, on June 20, 2005, a certain Mortgage was executed by Mary E. Unruh, as mortgagor in favor of Wells Fargo Bank, N.A., its successors or assigns, as lender and was recorded on June 24, 2005 in Book 4501, Page 0181 of the Rockingham County Registry of Deeds; and WHEREAS, the Mortgage was insured by the United States Secretary of Housing and Urban Development (the Secretary) pursuant to the National Housing Act for the purpose of providing single family housing; and WHEREAS, the Mortgage is now owned by the Secretary, pursuant to an assignment dated September 23, 2016, and recorded on September 27, 2016, in Book 5756, Page 1497, of the Rockingham County Registry of Deeds; and WHEREAS, a default has been made in the covenants and conditions of the Mortgage in that the payment due on October 17, 2019 was not made and remains wholly unpaid as of the date of this notice, and no payment has been made sufficient to restore the loan to currency; and WHEREAS, the entire amount delinquent as of January 16, 2021 is $317,237.94; and WHEREAS, by virtue of this default, the Secretary has declared the entire amount of the indebtedness secured by the Mortgage to be immediately due and payable; NOW THEREFORE, pursuant to powers vested in me by the Single Family Mortgage Foreclosure Act of 1994, 12 U.S.C. 3751 et seq., by 24 CFR part 27, subpart B, and by the Secretary's designation of me as Foreclosure Commissioner, recorded on November 6, 2015 in Book 5668, Page 2263 of the Rockingham County Registry of Deeds, notice is hereby given that on February 19, 2021 at 11:00 a.m. local time, all real and personal property at or used in connection with the following described premises (""Property"") will be sold at public auction to the highest bidder: Commonly known as: 27 Sutton Avenue, Portsmouth, New Hampshire A certain lot of land situated in said Portsmouth near Sherburne Road and bounded and described as follows: Beginning at a point on the Northerly side line of a proposed road, now called Sutton Street, at the Southeasterly corner of said land, said point being one hundred sixty-five (165) feet Westerly of said Sherburne Road and being the southwesterly corner of land of G.A. Bennett,. and thence running Westerly eighty-two and one-half (82 1/2) feet, bounded southerly by said Sutton Street, to other land of said John R. Goiter; thence turning and running Northerly, bounded westerly by other land of said John R. Goiter, on a line parallel with said Sherburne Road, one hundred fifty (150) feet to other land of said John R. Goiter; thence turning and running Easterly, bounded northerly by other land of said John R. Goiter, eighty two and one half (82 1/2) feet to land now owned by H. S. Corliss; thence turning and running Southerly, bounded easterly by land of said H.S. Corliss and land of said G.A. Bennett, one hundred fifty (150) feet to the point of beginning. For title reference see deed recorded at Book 3458, Page 2134. The sale will be held at 27 Sutton Avenue, Portsmouth, New Hampshire The Secretary of Housing and Urban Development will bid $316,882.22. There will be no proration of taxes, rents or other income or liabilities, except that the purchaser will pay, at or before closing, his prorata share of any real estate taxes that have been paid by the Secretary to the date of the foreclosure sale. When making their bids, all bidders except the Secretary must submit a deposit totaling $31,688.22 \ in the form of a certified check or cashier's check made out to the Secretary of HUD. A deposit need not accompany each oral bid. If the successful bid is oral, a deposit of $31,688.22 must be presented before the bidding is closed. The deposit is nonrefundable. The remainder of the purchase price must be delivered within 30 days of the sale or at such other time as the Secretary may determine for good cause shown, time being of the essence. This amount, like the bid deposits, must be delivered in the form of a certified or cashier's check. If the Secretary is the highest bidder, he need not pay the bid amount in cash. The successful bidder will pay all conveying fees, all real estate and other taxes that are due on or after the delivery date of the remainder of the payment and all other costs associated with the transfer of title. At the conclusion of the sale, the deposits of the unsuccessful bidders will be returned to them. The Secretary may grant an extension of time within which to deliver the remainder of the payment. All extensions will be for 15-day increments for a fee of $500.00, paid in advance. The extension fee shall be in the form of a certified or cashier's check made payable to the Secretary of HUD. If the high bidder closes the sale prior to the expiration of any extension period, the unused portion of the extension fee shall be applied toward the amount due. If the high bidder is unable to close the sale within the required period, or within any extensions of time granted by the Secretary, the high bidder may be required to forfeit the cash deposit or, at the election of the foreclosure commissioner after consultation with the HUD representative, will be liable to HUD for any costs incurred as a result of such failure. The Commissioner may, at the direction of the HUD representative, offer the property to the second highest bidder for an amount equal to the highest price offered by that bidder. There is no right of redemption, or right of possession based upon a right of redemption, in the mortgagor or others subsequent to a foreclosure completed pursuant to the Act. Therefore, the Foreclosure Commissioner will issue a Deed to the purchaser(s) upon receipt of the entire purchase price in accordance with the terms of the sale as provided herein. HUD does not guarantee that the property will be vacant. The scheduled foreclosure sale shall be cancelled or adjourned if it is established, by documented written application of the mortgagor to the Foreclosure Commissioner not less than 3 days before the date of sale, or otherwise, that the default or defaults upon which the foreclosure is based did not exist at the time of service of this notice of default and foreclosure sale, or all amounts due under the mortgage agreement are tendered to the Foreclosure Commissioner, in the form of a certified or cashier's check payable to the Secretary of HUD, before public auction of the property is completed. For information on getting help with housing and foreclosure issues, please call the foreclosure information hotline at 1-800-437-5991. The hotline is a service of the New Hampshire Banking Department. There is no charge for this call. The New Hampshire Banking Department can be contacted at 53 Regional Dr., #200, Concord, NH 03301 at Tel. No. 603.271.3561 and email at nhbd@banking.nh.org. For Service of Process, Mortgagee's agent is Craig, Deachman & Associates, PLLC and address is 1662 Elm Street, Manchester New Hampshire 03101. The amount that must be paid if the mortgage is to be reinstated prior to the scheduled sale is $317,237.94, plus all other amounts that would be due under the mortgage agreement if payments under the mortgage had not been accelerated, advertising costs and postage expenses incurred in giving notice, mileage by the most reasonable road distance for posting notices and for the Foreclosure Commissioner's attendance at the sale, reasonable and customary costs incurred for title and lien record searches, the necessary out-of-pocket costs incurred by the Foreclosure Commissioner for recording documents, a commission for the Foreclosure Commissioner, and all other costs incurred in connection with the foreclosure prior to reinstatement. Tender of payment by certified or cashier's check or application for cancellation of the foreclosure sale shall be submitted to the address of the Foreclosure Commissioner provided below. Date: December 31, 2020 Foreclosure Commissioner Marc van Zanten, Esq. Craig, Deachman & Associates, PLLC 1662 Elm Street Manchester, NH 03101 (603) 665-9111 .... More"

https://regex101.com/r/T3TTFn/1

Any thoughts?



Read more here: https://stackoverflow.com/questions/65724056/regex-matching-the-shortest-string-available

Content Attribution

This content was originally published by Fatchoco at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: