Predefined Regular Expressions to be Used in File Server Resource Manager (FSRM)
Description REGEX Examples (Separated by comma) URL ([\d\w-.]+?\.(a[cdefgilmnoqrstuwz] b[abdefghijmnorstvwyz] c[acdfghiklmn oruvxyz] d[ejkmnoz] e[ceghrst] f[ijkmnor] g[abdefghilmnpqrstuw y] h[kmnrtu] i[delmnoqrst] j[emop] k[eghimnprwyz] l[abcikrstuvy ] m[acdghklmnopqrstuvwxyz] n[acefgilopruz] om p[aefghklmnrst wy] qa r[eouw] s[abcdeghijklmnortuvyz] t[cdfghjkmnoprtvwz] u[ augkmsyz] v[aceginu] w[fs] y[etu] z[amw] aero arpa biz com c oop edu info int gov mil museum name net org pro)(\b \W(?<!& =)(?!\.\s \.{3}).*?))(\s $) www.lepide.com, www.google.com, www.bing.com Email Addresses ^[\w\.=-]+@[\w\.-]+\.[\w]{2,3}$ someone@somew here.com, userabc@www.myc ompany.com File Path \\[^\\]+$ UK postal codes ^[A-Za-z]{1,2}[\d]{1,2}([A-Za-z])?\s?[\d][A-Za-z]{2}$ WC2H 9JQ, YO1 0BF, TW6 2GF Mobile Numbers without country codes ^\+[1-9]{1}[0-9]{3,14}$ "+919560784512", "+447845120312" Dutch Code Postal ^[1-9][0-9]{3}\s?[a-zA-Z]{2}$ 2597 GV, 2518BG UK VAT Registration Numbers ^([GB])*(([1-9]\d{8}) ([1-9]\d{11}))$ GB999999973, GB986532101, GB451210120 IPV4 Addresses ^\d{1,3}[.]\d{1,3}[.]\d{1,3}[.]\d{1,3}$ 192.168.10.56, 96.210.12.125, 127.0.0.0 2018 Lepide Software Pvt. Ltd. Page 2
US Numbers Phone (\+1 1)?[ \-\.]?\(?(?[0-9]{3})\)?[ \-\.]?(?[0-9]{3})[ \-\.]?(?[0-9]{4})[ \.]*(ext x)?[ \.]*(?<extension>[0-9]{0,5}) 8956230147, 4514506100, 9812458963 IPV6 Addresses (([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4} ([0-9a-fA-F]{1,4}:){1,7}: ([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4} ([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA- F]{1,4}){1,2} ([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3} ([0-9a-fA- F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4} ([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA- F]{1,4}){1,5} [0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6}) :((:[0-9a-fA- F]{1,4}){1,7} :) fe80:(:[0-9a-fa-f]{0,4}){0,4}%[0-9a-za- Z]{1,} ::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5] (2[0-4] 1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5] (2[0-4] 1{0,1}[0-9]){0,1}[0-9]) ([0-9a-fA- F]{1,4}:){1,4}:((25[0-5] (2[0-4] 1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5] (2[0-4] 1{0,1}[0-9]){0,1}[0-9])) 2001:db8:85a3:0:0: 8a2e:370:7334, 2001:0db8:85a3:00 00:0000:8a2e:0370 :7334, 2001:db8:3:4:192:0 :2:33 MM/DD/YYYY Date only Formats ^([1][12] [0]?[1-9])[\/-]([3][01] [12]\d [0]?[1-9])[\/-](\d{4} \d{2})$ 7/8/2012, 08/05/1980, 12/30/2002 Indian numbers PAN ^[A-Z]{5}[0-9]{4}[A-Z]{1}$ ALUIN9865E, POHNB1208F, ALVWB1092S UK national insurance number (With/without spaces) ^[A-Z]{2}?[0-9]{2}?[0-9]{2}?[0-9]{2}?[A-DFM]{1}$ QA 76 21 76 C, RS 16 45 78 B, HN 87 12 90 A Canadian codes ZIP ^[a-za-z][0-9][a-za-z]\s?[0-9][a-za-z][0-9]$ A1A 1M1, U7A 1V7, I8A 5G1 US ZIP codes ^((\d{5}-\d{4}) (\d{5}) ([A-Z]\d[A-Z]\s\d[A-Z]\d))$ 12548, 98653, 78451 UK bank sort code ^[0-9]{2}[-][0-9]{2}[-][0-9]{2}$ 12-96-98, 10-56- 98, 78-54-23 2018 Lepide Software Pvt. Ltd. Page 3
UK Driver's license numbers Z]{1}[9]{1} [A-Z]{2})[A-Z0-9]{3}[0-9]{2}$ THOMS708267GH 78700,MURPH219 167DA78712 UK domestic landline numbers (02\d\s?\d{4}\s?\d{4}) (01\d{2}\s?\d{3}\s?\d{4}) (01\d{3}\s?\d{5,6}) (01\d{4}\s?\d{4,5}) 0113 454 4545, 020 4545 1201, 01865 451245, 0131 120 4578 Basic UK Child benefit reference number ^[A-Z]{3}?\d{8}$ CHB12345678, ACB76767373, UKH19828938 Master Card, Visa, Amex, Diners/CarteBla nche, Discover/Novus, Enroute, and JCB ^([A-Z]{2}[9]{3} [A-Z]{3}[9]{2} [A-Z]{4}[9]{1} [A-Z]{5})[0-9]{6}([A- ^3(?:[47]\d([ -]?)\d{4}(?:\1\d{4}){2} 0[0-5]\d{11} [68]\d{12})$ ^4(?:\d\d\d)?([ -]?)\d{4}(?:\2\d{4}){2}$ ^6011([ -]?)\d{4}(?:\3\d{4}){2}$ ^5[1-5]\d\d([ - ]?)\d{4}(?:\4\d{4}){2}$ ^2014\d{11}$ ^2149\d{11}$ ^2131\d{11}$ ^1800\d{11}$ ^3\d{15}$ 5412 8974 4444 2222, 541289744444222 2, 4512 4519 5130 2457, 378954110154545 2018 Lepide Software Pvt. Ltd. Page 4
Support If you are facing any issues whilst installing, configuring or using the solution, you can connect with our team using the below contact information. Product experts USA/Canada: +1(0)-800-814-0578 UK/Europe: +44 (0) -208-099-5403 Rest of the World: +91 (0) -991-004-9028 Technical gurus USA/Canada: +1(0)-800-814-0578 UK/Europe: +44 (0) -208-099-5403 Rest of the World: +91(0)-991-085-4291 Alternatively, visit http://www.lepide.com/contactus.html to chat live with our team. You can also email your queries to the following addresses: sales@lepide.com support@lepide.com To read more about the solution, visit http://www.lepide.com/lepideauditor/. Copyright LepideAuditor, LepideAuditor App, LepideAuditor App Server, LepideAuditor (Web Console), LepideAuditor Logon/Logoff Audit Module, any and all components, any and all accompanying software, files, data and materials, this guide, and other documentation are copyright of Lepide Software Private Limited, with all rights reserved under the copyright laws. This user guide cannot be reproduced in any form without the prior written permission of Lepide Software Private Limited. No Patent Liability is assumed, however, on the use of the information contained herein. Lepide Software Private Limited, All Rights Reserved. Warranty Disclaimers and Liability Limitations LepideAuditor, LepideAuditor App, LepideAuditor App Server, LepideAuditor (Web Console), LepideAuditor Logon/Logoff Audit Module, any and all components, any and all accompanying software, files, data, and materials are distributed and provided AS IS and with no warranties of any kind, whether expressed or implied. In particular, there is no warranty for any harm, destruction, impairment caused to the system where these are installed. You acknowledge that good data processing procedure dictates that any program, listed above, must be thoroughly tested with non-critical data before there is any reliance on it, and you hereby assume the entire risk of all use of the copies of LepideAuditor and the above listed accompanying programs covered by this License. This disclaimer of warranty constitutes an essential part of this License. 2018 Lepide Software Pvt. Ltd. Page 5
In no event does Lepide Software Private Limited authorize you or anyone else to use LepideAuditor and the above listed accompanying programs in applications or systems where LepideAuditor and the above listed accompanying programs failure to perform can reasonably be expected to result in a significant physical injury, or in loss of life. Any such use is entirely at your own risk, and you agree to hold Lepide Software Private Limited harmless from any and all claims or losses relating to such unauthorized use. Trademarks LepideAuditor, LepideAuditor App, LepideAuditor App Server, LepideAuditor (Web Console), LepideAuditor Logon/Logoff Audit Module, LepideAuditor for Active Directory, LepideAuditor for Group Policy Object, LepideAuditor for Exchange Server, LepideAuditor for SQL Server, LepideAuditor for SharePoint, Lepide Object Restore Wizard, Lepide Active Directory Cleaner, Lepide User Password Expiration Reminder, and LiveFeed are registered trademarks of Lepide Software Pvt Ltd. All other brand names, product names, logos, registered marks, service marks and trademarks (except above of Lepide Software Pvt. Ltd.) appearing in this document are the sole property of their respective owners. These are purely used for informational purposes only. We have compiled a list of such trademarks, but it may be possible that a few of them are not listed here. Microsoft, Active Directory, Group Policy Object, Exchange Server, SharePoint, and SQL Server are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. 2018 Lepide Software Pvt. Ltd. Page 6