I would need to retrieve an email id from a email address. (i.e. this-is-the-best.email@gmail.com => this-is-the-best.email)
The regex that I used is (.*)@.* .
Now I need truncate the string with N characters. (i.e. N=7 => this-is N=30 =>this-is-the-best.email)
How would I add this to a existing regex? Any other recommendations?