我試圖從1'699.200
颳起價格像1699.20
。正則表達式颳去價格沒有任何標籤
我該怎麼做,通過正則表達式exp?
Reservation source: Booking.com reservation #591064783
The following information was provided by Booking.com at the time the reservation was created:
*** Reservation information ***
Reservation made on: 2015-11-08 at 23:54:52
Currency: EUR
Total reservation amount: 1'699.200
Total reservation commission amount: 254.880
*** Customer information ***
Name: Daniele
Email: [email protected]
Address:
Zip/Post code:
City: .
Country: Switzerland
Company:
Phone: +41761
Remarks: Hello, we might be 9 friends, and we can bring our own mattress would it be a problem? If it is, then we will be 8.
*** Room guest information ***
Room arrival date: 2015-12-29
Room departure date: 2016-01-02
Check-in: 2015-12-29
Check-out: 2016-01-02
Guest name: Daniele
Number of guests: 8
Smoking preference: Non-smoking
Remarks:
*** Room/facilities information ***
Room facilities: Tea/Coffee maker, Shower, Hairdryer, Iron, Refrigerator, Desk, Ironing facilities, Sitting area, Fan, Toilet, Microwave, Washing machine, Bathroom, Heating, Kitchen, Flat-screen TV, Sofa, Hardwood/Parquet floors, Dining area, Electric kettle, Kitchenware, Wardrobe/Closet, Oven, Stovetop, Cleaning products, City view, Towels, Linens, Dining table, Private apartment in building, Clothes rack
Room information: No meal is included in this room rate. Children and Extra Bed Policy: All children are welcome. One child under 3 years is charged EUR 10 per night in a crib. Any additional children under 4 years are charged EUR 10 per night for extra beds. The maximum number of extra beds/cribs in a room is 1. Deposit Policy: 20 percent of the total amount may be charged anytime after booking. Cancellation Policy: Please note, if canceled or modified, 100 percent of the total price of the reservation will be charged.
Room extra information: This apartment has a washing machine, seating area and oven.
*** Room pricing information ***
Currency: EUR
Total price: 1'699.200
Commission: 254.880
Nightly prices:
2015-12-29: 424.000 (rate: 4103701 "Standard Rate")
2015-12-30: 424.000 (rate: 4103701 "Standard Rate")
2015-12-31: 424.000 (rate: 4103701 "Standard Rate")
2016-01-01: 427.200 (rate: 4103701 "Standard Rate")
這是我試過的,https://regex101.com/r/aE6vK0/1但這不是它。
您使用什麼語言? – hwnd
PHP,但我想通過1個表達式來完成它,比如Total預留量:(\ s + [^ \ s] +)。所以任何工作regex101應該這樣做 –
一旦你得到了「1'699.200」字符串,使用你的編程語言刪除引號,並簡單地轉換爲數字。 – StephaneM