and when I match it with string like "123e" or "e2" it works while it shouldn't and I can't find the reason why. And please if anyone knows how to debug regex let me know how. Thanks in advance.
It works fine now thank you. And yes answering your question those were for the new line because I wanted the regex to be written on two different lines.
the problem with me was escaping the "." .