# RegTextupdate

Based on the textupdate widget, this widget displays the value of a PV after filtering it with a regular expression.

## Properties

Most of the configuration values are inherited from the textupdate widget

- Reg.Exp:
  The widget reads the current value of the PV as a string and then applies this regular expression. The expression must have submatches, defined as braces, and the result of the submatch is then displayed.
  Examples:

             (\+?\-?[.0-9]+)
             - cuts a number out of a string

             [.0-9]+ (.*)
             - cuts the text following a number and a space from the string

             SNS Name examples:

             The SNS PV names have three subsections, separated by colons.
             If you pass the PV name as a macro $(PV) into an edm display,
             you can use "$(PV).NAME" to read the PV name via ChannelAccess.

             The following regular expressions will then extract the portions:

             ([^:]+)
             - extracts the system/subsystem from a standard SNS name.

             [^:]+:([^:]+)
             - extracts the device name portion of a standard SNS name.

             [^:]+:[^:]+:(.+)
             - signal name