REGEX-Escape for: .body("progress.currentStep", is(STEP_NO_MORE_TASKS)) .body("progress.totalSteps", is(TOTAL_STEPS));

Your Input:
Result, the escaped string:
\.body\("progress\.currentStep", is\(STEP_NO_MORE_TASKS\)\) \.body\("progress\.totalSteps", is\(TOTAL_STEPS\)\);

What must the escaping look like for:
.body("progress.currentStep", is(STEP_NO_MORE_TASKS)) .body("progress.totalSteps", is(TOTAL_STEPS));

The excaped text for use in a regex is:
\.body\("progress\.currentStep", is\(STEP_NO_MORE_TASKS\)\) \.body\("progress\.totalSteps", is\(TOTAL_STEPS\)\);


Ads