Checkmate: same numerical value but different unit

Issue #585 new
稲葉義雄 created an issue

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)

  1. ysavourel

    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.

  2. Log in to comment