# Odd regexp problem

**URL:** <https://forum.kirupa.com/t/odd-regexp-problem/266241>\
**Category:** Uncategorized\
**Created:** [July 17, 2008, 3:38pm UTC](https://forum.kirupa.com/t/odd-regexp-problem/266241 "2008-07-17T15:38:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sekasi](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@sekasi](https://forum.kirupa.com/u/sekasi)\
**Post date:** [July 17, 2008, 3:38pm UTC](https://forum.kirupa.com/t/odd-regexp-problem/266241/1 "2008-07-17T15:38:18Z")

</div>

I’m doing a registration snip that contains both client side and server side validation for a few items… I’ve run into a problem with the Regexp class in flash and I was wondering if anyone could clarify a few things.

This is the pattern I’m controlling against;

```auto

var controlPattern:RegExp = /	(\w|[_.\-])+	@	((\w|-)+\.)+	\w{2,4}+	/x;

```

For some reason, people are telling me it’s reporting some email addresses as invalid although I can’t for my life understand why. Got any ideas of ‘real’ addresses that would test false to that expression? I can’t Ⓜ
