Reg.Exp:
The widget applies this regular expression to the value of its
text field, after performing variable substitution. The
expression must have submatches defined by braces. 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