User:TomTheHand/Unit tests for AWB regexes/Frequency
Appearance
This section contains regular expressions for properly formatting frequency.
Capitalize Hz properly
[edit]Description | |
---|---|
Capitalize Hz properly, and insert non-breaking spaces per MoS. RegExTypoFix, included in AWB, actually takes care of many Hz errors, but not all. | |
Find | |
\b(\d+)(?:\s| |-)*(Y|Z|E|P|T|G|M|k|h|da|d|c|m|µ|n|p|f|a|z|y)?(?:hz|HZ|hZ)\b | |
Replace with | |
$1 $2Hz | |
Regular expression? | Case sensitive? |
Y | Y |
Text this regex should modify: | Intended result: |
|
|