Created attachment 32542 [details] Testplan for reproducing the problem. __regexFunction() is a very fine and compact way to test the response data of the previous request in an "if" or "while" element without the need of setting an initial value or adding an regexp extractor. It works well under these precondition: local testing or remote testing and no stripping batch mode. With the same testplan it don't works if it is remote tested an the default " MODE_STRIPPED_BATCH" is enabled. If the remote batching configuration is switched to "mode=Standard", it works well again also remote.
*** This bug has been marked as a duplicate of bug 56376 ***
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/3550