# Grok filter EMAILADDRESS no worky if it starts with a number

**URL:** <https://discuss.elastic.co/t/grok-filter-emailaddress-no-worky-if-it-starts-with-a-number/73425>\
**Category:** Logstash\
**Created:** [January 31, 2017, 9:45pm UTC](https://discuss.elastic.co/t/grok-filter-emailaddress-no-worky-if-it-starts-with-a-number/73425 "2017-01-31T21:45:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![panaman](https://avatars.discourse-cdn.com/v4/letter/p/3da27b/32.png) [@panaman](https://discuss.elastic.co/u/panaman)\
**Post date:** [January 31, 2017, 9:45pm UTC](https://discuss.elastic.co/t/grok-filter-emailaddress-no-worky-if-it-starts-with-a-number/73425/1 "2017-01-31T21:45:39Z")

</div>

if you have an email address like "2livecrew@gmail.com" that starts with a number and not a letter, the %{EMAILADDRESS:email} filter won't work.

The regex in EMAILLOCALPART needs to have 0-9 added  
ORIGINAL

```auto
EMAILLOCALPART [a-zA-Z][a-zA-Z0-9_.+-=:]+
```

PROPOSED FIX

```auto
EMAILLOCALPART [a-zA-Z0-9][a-zA-Z0-9_.+-=:]+
```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 28, 2017, 9:46pm UTC](https://discuss.elastic.co/t/grok-filter-emailaddress-no-worky-if-it-starts-with-a-number/73425/2 "2017-02-28T21:46:13Z")

</div>

Closed on February 28, 2017, 9:46pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
