User:TomTheHand/Unit tests for AWB regexes/Frequency
From Wikipedia, the free encyclopedia
This section contains regular expressions for properly formatting frequency.
[edit] Capitalize Hz properly
| 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: |
|
|

