Question: **Here is my SessionController**

```
 public function store()
{
    //Attempt to authenticate user
    if(! auth()->attempt(request(['email', 'password']))){
        return back();
    }

    return redirect()->home();
}

```

Password populated with plain text, and am inputting correct email and password, but its not logging me in :(

**here is my route**

```
    Route::get('/login','SessionController@create');
    Route::post('/login','SessionController@store');

    Looking forward for your respected answers and comment.

```

Answer: 
You shouldn't use a word boundary meta-character `\b` since it matches the position right after `WW` which sees a hash `#` character. This position is a word boundary itself. So you should pick up a different way:

```
(?<![\S&&[^,]])[a-zA-Z]+(?![\S&&[^,]])

```

Using character class intersection feature of Java's regex you are able to define punctuation characters that are allowed to follow or precede a word character. Here it is a comma `,`.
You could use look behind and look ahead to check there is no `#`. 

```
\b(?<!\#)[a-zA-Z]+(?!\#)\b

```