gui.regex_validators module¶
This module is basically used in every widget script (e.g. widget_pi_control.py). To limit the possibilities of things that the user can enter into the respective lineEdits, so called RegEx validators are used. Regular expression is a world on its own an very difficult to understand if it has to be quick.
The things that we use them for are very simple. So simple that we were able to find tools online to help us create or find the correct regular expressions.
There is a famous quote to help you cope with it:
Some people, when confronted with a problem, think “I know, I’ll use regular expressions.” Now they have two problems. - Jamie Zawinski
References