Validation in LineEdit

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Viachaslau

Hi everyone.

Is there’s any way to add in-place validation to LineEdit in Godot 2.1? For example, check e-mail corectness.

I tried to override _input(event) and _input_event(event), but symbols still appear in LineEdit. I also tried to delete last input symbol if text do not satisfy RegEx, but dislike this solution.

May be I miss something, and it can be achieved in another way than I tried? Thnx for any advice.

I used Godot 2.1.5rc1