By default, Verifika uses language standards for checks like number formatting. However, sometimes client requirements specify that numbers in the target text should match the formatting in the source. Instead of setting up new profiles for each language, you can use user-defined checks to specify number formatting used in the source.
Say your source has a period for decimals (0.5) and a comma for thousands (11,200) with exception for 4-digits (1200). To verify that target follows the same formatting, you'll need just 2 checks with the following regular expressions in the source:
- [1] For decimals: (\d+.\d+)
- [2] For thousand separators: (\d+,\d+|\b\d{4}\b)
With cross-segment back-reference (B) activated for the target expression
\1.
The ready checks will look like below.