cukes icon indicating copy to clipboard operation
cukes copied to clipboard

Pattern "(.+)" is greedy

Open DmitryPrigodich opened this issue 7 years ago • 1 comments

Pattern "(.+)" is greedy, it cannot differentiate these kind of strings (just an example, like enlargement of original step): * let variable "ddd" equal to "zzz" * let variable "ddd" equal to "zzz" with random number starting from "7"

Pattern ([^\"]+) is more precize.

DmitryPrigodich avatar Dec 04 '17 13:12 DmitryPrigodich

Well, ok, when we want to have string with quote signs ("") then it might not work as expected.

DmitryPrigodich avatar Dec 06 '17 15:12 DmitryPrigodich