Checkmate: same numerical value but different unit
Issue #585
new
How to set Checkmate pattern in the case below:
Source: 150 rpm Target: 150r/min
A numrical value should be the same but a unit should b different and a space shold be deleted in target. In a text editor "search and replace" option, I can set as follows: search: ([0-9]*)\srpm replace: \1r/min
Comments (2)
-
-
Related to
#543 - Log in to comment
Currently such comparison is not possible because the regex for the source and the regex for the target are separated expression (so target target does not know anything about
\1
). It's two search rather than a search and replace.Enhancing the pattern feature to add the possibility of referring to parts of the source in the target has been requested already. I just have to find the existing open issue for this.