...
input | desc | regex | matching | not matching |
---|---|---|---|---|
Ad | equals 'Ad' | /^Ad.*/g | Ad | admin, monica |
Ad* | startswith 'Ad' | /^Ad.*/g | Admin, Add | admin, monica |
*Ad | endswith 'Ad' | /.*Ad$/g | mkisdAd | mkdisad, youtube |
*Ad* | contains 'Ad' | /.*Ad.*/g | mmAdkias,mmAd | admin, monica |
*Ad*s* | contains 'Ad' something 's' something | /.*Ad.*s.*/g | Admins, Ads | Admin, admins |
?Ad?s* | Single any char'Ad' single any char 's' something | /.Ad.s.*/g | fAdhs, gAdis | Admin, admins |
The rules are described in column “regex” to be tested with Flavor “ECMAScript” regex at this site: https://regex101.com/
Examples for filtered row in table