#include <StringConstants.au3> ; to declare the Constants of StringRegExp
#include <Array.au3> ; UDF needed for _ArrayDisplay and _ArrayConcatenate
Local $sRegex = "Order Total:\nCDN\$ ([\d\.]+)"
Local $sString = "---------- Forwarded message ----------" & @CRLF & _
"From: auto-confirm@amazon.ca <auto-confirm@amazon.ca>" & @CRLF & _
"Date: Fri, Nov 6, 2015 at 11:24 AM" & @CRLF & _
"Subject: Your Amazon.ca order of "Cheetah Mounts ALAMLB..."" & @CRLF & _
"To: Charles Regan <charles.regan@gmail.com>" & @CRLF & _
"" & @CRLF & _
"" & @CRLF & _
"Amazon.ca" & @CRLF & _
"Your Orders" & @CRLF & _
" | Your Account | Amazon.ca" & @CRLF & _
"Order Confirmation" & @CRLF & _
"Order #701-7756830-8577864" & @CRLF & _
"Hello Charles Regan," & @CRLF & _
"Thank you for shopping with us. We’ll send a confirmation once your item has shipped. Your order details are indicated below. If you would like to view the status of your order or make any changes to it, please visit Your Orders on Amazon.ca." & @CRLF & _
"" & @CRLF & _
"Your estimated delivery date is: " & @CRLF & _
"Wednesday, November 18, 2015" & @CRLF & _
"" & @CRLF & _
"Your shipping speed: " & @CRLF & _
"FREE Shipping" & @CRLF & _
"" & @CRLF & _
"Your Orders" & @CRLF & _
"Your order will be sent to: " & @CRLF & _
"CHARLES REGAN " & @CRLF & _
"1419 CH. DE L'ETANG-DU-NORD " & @CRLF & _
"ETANG-DU-NORD, Québec G4T3B9 " & @CRLF & _
"Canada" & @CRLF & _
"" & @CRLF & _
"Order Details" & @CRLF & _
"Order #701-7756830-8577864 " & @CRLF & _
"Placed on Friday, November 6, 2015" & @CRLF & _
"" & @CRLF & _
"Cheetah Mounts ALAMLB Articulating Arm (20" Extension) TV Wall Mount Bracket for 23-49 inch LCD, LED and Plasma Flat Screen TVs up to VESA 400x400 and 66lbs, with full Ballhead Tilt, Swivel, and Rotation Motion, Including a Twisted Veins 10' Braided High Speed with Ethernet HDMI Cable and a 6" 3-Axis Magnetic Bubble Level " & @CRLF & _
"Electronics " & @CRLF & _
"Sold by SPN Imports and Services " & @CRLF & _
"Condition: New" & @CRLF & _
"Facebook" & @CRLF & _
"Twitter" & @CRLF & _
"Pinterest" & @CRLF & _
"CDN$ 29.33" & @CRLF & _
"Item Subtotal:" & @CRLF & _
"CDN$ 29.33" & @CRLF & _
"Shipping & Handling:" & @CRLF & _
"CDN$ 0.00" & @CRLF & _
"Estimated Tax (GST/HST):" & @CRLF & _
"CDN$ 0.00" & @CRLF & _
"Estimated Tax (PST/QST):" & @CRLF & _
"CDN$ 0.00" & @CRLF & _
"Order Total:" & @CRLF & _
"CDN$ 29.33" & @CRLF & _
"To learn more about ordering, go to Ordering from Amazon.ca." & @CRLF & _
"If you want more information or need more assistance, go to Help." & @CRLF & _
"" & @CRLF & _
"We hope to see you again soon!" & @CRLF & _
"Amazon.ca" & @CRLF & _
"This email was sent from a notification-only address that cannot accept incoming email. Please do not reply to this message." & @CRLF & _
"" & @CRLF & _
" " & @CRLF & _
"Amazon.ca" & @CRLF & _
"Vos commandes" & @CRLF & _
" | Votre compte | Amazon.ca" & @CRLF & _
"Confirmation de la commande" & @CRLF & _
"Commande n° 701-7756830-8577864" & @CRLF & _
"Bonjour Charles Regan," & @CRLF & _
"Merci d'avoir magasiné chez nous. Nous vous enverrons une confirmation une fois que votre article aura été expédié. Les détails de votre commande sont indiqués ci-dessous. Veuillez visiter la section Vos commandes sur Amazon.ca si vous souhaitez voir le statut de votre commande ou apporter des modifications à celle-ci." & @CRLF & _
"" & @CRLF & _
"Votre date de livraison prévue est le : " & @CRLF & _
"mercredi 18 novembre 2015" & @CRLF & _
"" & @CRLF & _
"Votre mode de livraison : " & @CRLF & _
"Livraison GRATUITE" & @CRLF & _
"" & @CRLF & _
"Your Orders" & @CRLF & _
"Votre commande sera expédiée à : " & @CRLF & _
"CHARLES REGAN " & @CRLF & _
"1419 CH. DE L'ETANG-DU-NORD " & @CRLF & _
"ETANG-DU-NORD, Québec G4T3B9 " & @CRLF & _
"Canada" & @CRLF & _
"" & @CRLF & _
"Détails de la commande" & @CRLF & _
"Commande n° 701-7756830-8577864 " & @CRLF & _
"Passée le vendredi 6 novembre 2015" & @CRLF & _
"" & @CRLF & _
"Cheetah Mounts ALAMLB Articulating Arm (20" Extension) TV Wall Mount Bracket for 23-49 inch LCD, LED and Plasma Flat Screen TVs up to VESA 400x400 and 66lbs, with full Ballhead Tilt, Swivel, and Rotation Motion, Including a Twisted Veins 10' Braided High Speed with Ethernet HDMI Cable and a 6" 3-Axis Magnetic Bubble Level " & @CRLF & _
"Electronics " & @CRLF & _
"Vendu par SPN Imports and Services " & @CRLF & _
"Condition : New" & @CRLF & _
"Facebook" & @CRLF & _
"Twitter" & @CRLF & _
"Pinterest" & @CRLF & _
"CDN$ 29.33" & @CRLF & _
"Sous-total article(s) :" & @CRLF & _
"CDN$ 29.33" & @CRLF & _
"Expédition et manutention :" & @CRLF & _
"CDN$ 0.00" & @CRLF & _
"Estimation de la TPS/TVH :" & @CRLF & _
"CDN$ 0.00" & @CRLF & _
"Estimation de la TVP/TVQ :" & @CRLF & _
"CDN$ 0.00" & @CRLF & _
"Total de la commande :" & @CRLF & _
"CDN$ 29.33" & @CRLF & _
"Pour en apprendre davantage à propos des commandes, consultez la page Commander sur Amazon.ca." & @CRLF & _
"Si vous souhaitez obtenir de plus amples informations ou si vous avez besoin d'assistance, consultez nos pages d'aide." & @CRLF & _
"" & @CRLF & _
"Nous espérons vous revoir bientôt." & @CRLF & _
"Amazon.ca" & @CRLF & _
"Ce courriel a été envoyé à partir d'une adresse de notification uniquement qui ne peut recevoir de courriels entrants. Veuillez ne pas répondre à ce message."
Local $aArray = StringRegExp($sString, $sRegex, $STR_REGEXPARRAYFULLMATCH)
; Present the entire match result
_ArrayDisplay($aArray, "Result")
Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for AutoIt, please visit: https://www.autoitscript.com/autoit3/docs/functions/StringRegExp.htm