[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-1-en-105":3,"doc-seo-658856-105":53,"doc-detail-658856-en":126,"doc-similar-658856":157},{"code":4,"msg":5,"data":6},0,"success",[7,14,19,24,29,34,39,44,49],{"id":8,"doc_module":9,"doc_module_name":10,"category_name":11,"show_sort_weight":12,"slug":13},11,1,"Template","Presentations",90,"presentations",{"id":15,"doc_module":9,"doc_module_name":10,"category_name":16,"show_sort_weight":17,"slug":18},12,"Resumes",80,"resumes",{"id":20,"doc_module":9,"doc_module_name":10,"category_name":21,"show_sort_weight":22,"slug":23},14,"Invoices",70,"invoices",{"id":25,"doc_module":9,"doc_module_name":10,"category_name":26,"show_sort_weight":27,"slug":28},15,"Posters",60,"posters",{"id":30,"doc_module":9,"doc_module_name":10,"category_name":31,"show_sort_weight":32,"slug":33},16,"Social Media",50,"social-media",{"id":35,"doc_module":9,"doc_module_name":10,"category_name":36,"show_sort_weight":37,"slug":38},17,"Forms",40,"forms",{"id":40,"doc_module":9,"doc_module_name":10,"category_name":41,"show_sort_weight":42,"slug":43},18,"Letters",30,"letters",{"id":45,"doc_module":9,"doc_module_name":10,"category_name":46,"show_sort_weight":47,"slug":48},21,"Paper Templates",5,"papers-templates",{"id":50,"doc_module":9,"doc_module_name":10,"category_name":51,"show_sort_weight":4,"slug":52},158,"General","general-158",{"code":4,"msg":54,"data":55},"ok",{"site_id":56,"language":57,"slug":58,"title":59,"keywords":60,"description":61,"schema_data":62,"social_meta":119,"head_meta":121,"extra_data":123,"updated_unix":125},105,"en","shared-email-templates-for-microsoft-outlook-regexes-use-regexmatch-regexextract-and-insert-if-sections","Shared Email Templates for Microsoft Outlook - Regexes - Use RegexMatch, RegexExtract, and Insert-if sections","","Shared Email Templates for Microsoft Outlook - Regexes explains how to automate email text insertion using regular expressions. It details the RegexMatch macro to insert different phrases based on whether specified fields match an order-ID pattern, including case-insensitive settings. It also covers RegexExtract to find and insert all matched occurrences with delimiters. Additionally, it shows how to build Insert-if sections using regex conditions for paragraphs, lists, tables, and rows, and how to use regex within datasets to pull country-specific dataset values into replies.",{"@graph":63,"@context":118},[64,80,101],{"@type":65,"itemListElement":66},"BreadcrumbList",[67,71,74,77],{"item":68,"name":69,"@type":70,"position":9},"https://docshare.wps.com","Home","ListItem",{"item":72,"name":10,"@type":70,"position":73},"https://docshare.wps.com/template/",2,{"item":75,"name":41,"@type":70,"position":76},"https://docshare.wps.com/template/letters/",3,{"item":78,"name":59,"@type":70,"position":79},"https://docshare.wps.com/template/shared-email-templates-for-microsoft-outlook-regexes-use-regexmatch-regexextract-and-insert-if-sections/658856/",4,{"url":78,"name":59,"@type":81,"image":82,"author":87,"headline":59,"publisher":90,"fileFormat":93,"inLanguage":57,"description":61,"dateModified":94,"datePublished":95,"encodingFormat":93,"isAccessibleForFree":96,"interactionStatistic":97},"DigitalDocument",{"url":83,"@type":84,"width":85,"height":86},"https://docshare.wps.com/thumbnails/shared-email-templates-for-microsoft-outlook-regexes-use-regexmatch-regexextract-and-insert-if-sections/658856.png","ImageObject",442,249,{"name":88,"@type":89},"gewufjwa","Person",{"url":68,"name":91,"@type":92},"DocShare","Organization","application/pdf","2026-12-02","2026-10-26",true,{"@type":98,"interactionType":99,"userInteractionCount":76},"InteractionCounter",{"@type":100},"ViewAction",{"@type":102,"mainEntity":103},"FAQPage",[104,110,114],{"name":105,"@type":106,"acceptedAnswer":107},"How does RegexMatch decide which text to insert in an email reply?","Question",{"text":108,"@type":109},"It checks specified field(s) for the first occurrence of a regex pattern. If a match is found, it inserts the first configured text value; otherwise it inserts text value2.","Answer",{"name":111,"@type":106,"acceptedAnswer":112},"What is the purpose of RegexExtract in Outlook email templates?",{"text":113,"@type":109},"RegexExtract finds strings in specified fields that match a regex and inserts either one or all found occurrences into the email in place of the macro placeholder, using a delimiter when multiple matches exist.",{"name":115,"@type":106,"acceptedAnswer":116},"How can Insert-if sections be used with regex to control greeting text?",{"text":117,"@type":109},"Create two greeting paragraphs, each tied to a condition. One paragraph returns the recipient’s first name when the To field matches the regex, and the other is inserted when the name does not match.","https://schema.org",{"og:url":78,"og:type":120,"og:title":59,"og:site_name":91,"og:description":61},"article",{"robots":122,"canonical":78},"index,follow",{"doc_id":124,"site_id":56},658856,1793054980,{"code":4,"msg":5,"data":127},{"doc_id":124,"user_id":128,"nickname":88,"user_avatar":129,"doc_module":9,"category_id":40,"category_name":41,"doc_title":59,"doc_description":61,"doc_content":130,"file_id":131,"file_url":132,"file_type":133,"file_size":134,"view_count":76,"is_deleted":4,"is_public":9,"is_downloadable":9,"audit_status":9,"page_count":135,"language":136,"language_code":57,"site_id":56,"html_lang":57,"table_of_contents":137,"faqs":138,"seo_title":139,"seo_description":61,"update_tm":125,"read_time":76,"preview_page_count":79,"preview_urls":140},3985747882900,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","Shared Email Templates  \n for Microsoft Outlook  \nRegexes  \nFind matching strings with regexes  \nWith the RegexMatch macro, you can use a regular expression (regex) to find a string that matches a certain pattern, for example an order ID, and automatically insert some text depending on whether a matching string is found or not.  \nLet's say you have two versions of a thank-you phrase. You choose which one to use in your email depending on whether an order ID is mentioned in a customer's request or not. You can get specific fields of a customer's email checked for an order ID and the suitable thankyou phrase inserted into your reply automatically. You just need to follow these steps:  \n1 In your template, place the cursor where a thank-you phrase is needed and select the Insert macro button.  \n2 Select RegexMatch.  \n3 In the Regex match dialog, specify:  \n• Field(s) where to look for a matching string.  \n• A regex that corresponds to the string.  \n• A text value that will be inserted if a matching string is found.  \n• Text value2 that will be inserted if a matching string is not found.  \n To make the search case insensitive,  \nselect the corresponding checkbox.  \nWhen you're done, select OK.  \n4 Save your template.  \n[Ablebits.com](Ablebits.com) 1  \nShared Email Templates  \n for Microsoft Outlook  \nRegexes  \nWhen you insert such a template into your reply, the specified field(s) will be checked for the first occurrence of the specified regex pattern. One of the specified text values will be inserted depending on whether a matching string is found or not.  \nExtract matching strings with regexes  \nThe RegexExtract macro will help you find strings that match a certain pattern, say, order IDs, and insert them into your email messages.  \nFor example, your customers' requests contain order IDs and you'd like to automatically include them in your replies. You can get the desired result by following these steps:  \n1 Start creating or editing a template. Place the cursor where an order ID is needed. On the template editor toolbar, select the Insert macro button.  \n2 Select RegexExtract.  \n[Ablebits.com](Ablebits.com) 2  \nShared Email Templates  \n for Microsoft Outlook  \nRegexes  \n3 The RegexExtract dialog will appear.  \n• Select field(s) to check for matching strings.  \n• Enter a regex that corresponds to the string that you want to find.  \n• Enter a delimiter that will separate matching strings if two or more are found.  \n To make the search case insensitive, select the corresponding checkbox.  \nSelect OK.  \n4 The RegexExtract macro placeholder will appear in your template. Save the changes by selecting the Save button.  \nWhen you insert such a template into your reply, the specified field(s) will be checked for matching strings and all the found occurrences of the specified regex pattern will be inserted in place of the RegexExtract macro placeholder.  \n[Ablebits.com](Ablebits.com) 3  \nShared Email Templates  \n for Microsoft Outlook  \nRegexes  \nInsert part of a template by regex condition  \nYou can use regular expressions for Insert-if sections in your templates when adding a condition to a paragraph, a list, a list item, a table, or a table row.  \nSuppose you want to start your reply to acustomer's request with the customer's first name in the opening line if the To field contains the customer's name. If the name is missing, you'd like to use a simple \"Hello\". So, you'll need:  \n• Two paragraphs containing greeting phrases, each with its own condition.  \n• A regular expression (regex) corresponding to the string that the To field will be checked for: ^\\w+\\s.  \nThese are the steps to follow:  \n1 Add two paragraphs containing greeting phrases to the template you're creating or editing. Use the Insert macro in one of them to return the recipient's first name.  \n2 Right-click the paragraph that contains the Insert macro placeholder, select the Add Condition option, and configure the condition.  \n• Select Message field.  \n• Select the fiel","cbCairgjBYqQV0WR","https://ap.wps.com/l/cbCairgjBYqQV0WR","pdf",720873,8,"English","# RegexMatch macro\n## Specify fields, regex, and inserted text values\n# RegexExtract macro\n## Extract all matches with delimiters\n# Insert part of a template by regex condition\n## Use Insert-if sections with message-field checks\n# Pull relevant values from datasets using regexes\n## Build a dataset with Regex and Regex columns","[{\"question\":\"How does RegexMatch decide which text to insert in an email reply?\",\"answer\":\"It checks specified field(s) for the first occurrence of a regex pattern. If a match is found, it inserts the first configured text value; otherwise it inserts text value2.\"},{\"question\":\"What is the purpose of RegexExtract in Outlook email templates?\",\"answer\":\"RegexExtract finds strings in specified fields that match a regex and inserts either one or all found occurrences into the email in place of the macro placeholder, using a delimiter when multiple matches exist.\"},{\"question\":\"How can Insert-if sections be used with regex to control greeting text?\",\"answer\":\"Create two greeting paragraphs, each tied to a condition. One paragraph returns the recipient’s first name when the To field matches the regex, and the other is inserted when the name does not match.\"}]","Shared Email Templates for Microsoft Outlook - Regexes - Use RegexMatch, RegexExtract, and Insert-if sections | PDF",[141,145,149,153],{"page_no":9,"url":142,"width":143,"height":144},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/79890484bbd96310e806b805b713b6b1.webp",983,1272,{"page_no":73,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/18221bc72dbb887ddc0181991d754ef1.webp",982,1270,{"page_no":76,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/e6a56db458351529a630370ef4b46791.webp",981,1269,{"page_no":79,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/43f878548d2b596b166b0feeedb297e9.webp",980,1268,{"list":158,"token":60},[159,164,170,176,184,191,197,203,209,215],{"doc_id":160,"doc_title":161,"file_type":133,"home_preview_img_url":162,"slug":163,"view_count":79,"category_name":41,"create_tm":125},658855,"Insert-if Sections - Insert conditional parts into shared email templates","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229977486267/last/442/249?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796248259&Signature=gtawavSwzog%2Fm%2BbOPMnZbUzBGQE%3D","insert-if-sections-insert-conditional-parts-into-shared-email-templates",{"doc_id":165,"doc_title":166,"file_type":133,"home_preview_img_url":167,"slug":168,"view_count":135,"category_name":41,"create_tm":169},658807,"Email Signature Template - How to Create - Steps","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229976853349/last/442/249?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796248259&Signature=X8%2F1Z3Y0InuXRIICQpgCrohWL90%3D","email-signature-template-how-to-create-steps",1793054478,{"doc_id":171,"doc_title":172,"file_type":133,"home_preview_img_url":173,"slug":174,"view_count":76,"category_name":41,"create_tm":175},658514,"Shared Email Templates for Outlook - Reply to emails faster than ever 10 - How to use template shortcuts","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229976841401/last/442/249?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796248259&Signature=AbNHR2NG7xR9zxokvLx9Mdas%2BK0%3D","shared-email-templates-for-outlook-reply-to-emails-faster-than-ever-10-how-to-use-template-shortcuts",1793050350,{"doc_id":177,"doc_title":178,"file_type":179,"home_preview_img_url":180,"slug":181,"view_count":182,"category_name":41,"create_tm":183},165857,"Fuqua Logo Outlook Signature Guidance","docx","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229873268850/last/442/249?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796248259&Signature=ehh1ypw9yqnnPbdnZ6ErYNvk4mM%3D","fuqua-logo-outlook-signature-guidance",25,1788177801,{"doc_id":185,"doc_title":186,"file_type":133,"home_preview_img_url":187,"slug":188,"view_count":189,"category_name":41,"create_tm":190},657961,"Student Email Signature Template V2","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975949737/last/442/249?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796248259&Signature=O8yRWde4DFJmwWSGXD0Pam8VzRc%3D","student-email-signature-template-v2",6,1792996268,{"doc_id":192,"doc_title":193,"file_type":179,"home_preview_img_url":194,"slug":195,"view_count":15,"category_name":41,"create_tm":196},173910,"Email Signatures Four Schools 2021 - Disclaimers and Signature Setup","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229874795211/last/442/249?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796248259&Signature=4b%2FtIoJnibolGgRcvh72%2FxvjYNg%3D","email-signatures-four-schools-2021-disclaimers-and-signature-setup",1788308512,{"doc_id":198,"doc_title":199,"file_type":133,"home_preview_img_url":200,"slug":201,"view_count":202,"category_name":41,"create_tm":125},658857,"Shared Email Templates for Outlook - Reply to emails faster than ever 7 - How to attach files","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229976855508/last/442/249?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796248259&Signature=VOFHImhGSMumaaIuVbXuxyi8Zrw%3D","shared-email-templates-for-outlook-reply-to-emails-faster-than-ever-7-how-to-attach-files",9,{"doc_id":204,"doc_title":205,"file_type":133,"home_preview_img_url":206,"slug":207,"view_count":47,"category_name":41,"create_tm":208},658968,"Out-of-Office and Auto-Reply Email Templates - Office OOOs - Parental Leave","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229977541497/last/442/249?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796248259&Signature=u4pUExbc3TDdYPnZ4EcZN0QsObg%3D","out-of-office-and-auto-reply-email-templates-office-ooos-parental-leave",1793060608,{"doc_id":210,"doc_title":211,"file_type":133,"home_preview_img_url":212,"slug":213,"view_count":189,"category_name":41,"create_tm":214},658696,"Add custom HTML code to an email template - Version 8 - instructions","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229977273416/last/442/249?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796248259&Signature=yN6MK3PMrWVnghoZWGlhxPf12EE%3D","add-custom-html-code-to-an-email-template-version-8-instructions",1793052814,{"doc_id":216,"doc_title":217,"file_type":133,"home_preview_img_url":218,"slug":219,"view_count":189,"category_name":41,"create_tm":220},658265,"Cold Email Templates That Will Get You Leads - 15 Cold Email Templates","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229976832709/last/442/249?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796248259&Signature=SdqPNxs7ItGVpTM5RuwYY3V5rE4%3D","cold-email-templates-that-will-get-you-leads-15-cold-email-templates",1793047078]