problem with -firsthit in sfk replace

syncroniza
2012-08-12
2013-01-06
  • syncroniza
    syncroniza
    2012-08-12

    Hi,

    I'm a fresh user of SFK (really great tool!).. So maybe I overlooked something.
    But for me, it seems that the sfk replace "-firsthit" option only works with 'same length' patterns (using the current Base version 1.6.5 for Windows). So, when the search and replace strings have different lengths, sfk always replaces all the occurrences, not just the first one. Is that correct? Or was someone successful in using "-firsthit" with different length patterns?

    Maybe the documentation could be updated with that (if it's really a limitation of "-firsthit")..

     
  • stahlworks
    stahlworks
    2012-08-14

    that's correct, it is not yet implemented with variable length replacements. this will be fixed.