Replace action with a RegEx on a text only file.

by AutoMate experts!, in Thread of the Month, posted 9/12/06

Our brand new section in the AutoMate Advisor where we focus on a popular forum post. This particular user is having trouble with Replace Text Action.

I am trying to erase all ocurrences of "XX*YY0" (for instance, "XX-12,13YY0") in a Text Only file by using the Replace action.

I am appending the task, and below there is a small portion of that file. When execution gets to the Replace action, it shows an error: "Range check error". The file is just one huge paragraph, many pages long. How can I achieve the result I want?

Portion of Text Only file:
"...1430,3,0,0,-1429,3,-1,0,1430,3,0,0,-1429,3,1,0,1428XX-12,13YY0,66,3,0,0,-66,3,6,0,60,3,-2,0,-56,3,1,0,44XX-12,36YY0,60,3,2,0,-62,3,0,0,63,3,2,0,-65,3,0,0,65XX-12,18YY0,19,3,2,0,-21,3,0,0,22,3,2,0,-22,3,2,0,21XX-12,37YY0,135,3,1,0,-137,3,-2,0,140,3,0,0,-141,3,0,0,511XX-12,-336YY0,192XX3,-9YY0,-183,3,-5,0,188,3,4,0,-208XX-9,239YY0,197,3,2,0,-199,3,-5,0,204XX3,-81YY0,-132XX0,144YY0,69,3,0,0,-65XX-12,85YY0,67,3,1,0,-68,3,0,0,69XX3,21YY0,-90,3,0,0,89XX-12,-6YY0,718,3,0,0,-719,3,-2,0,11XX0,10YY0,700,3,0,0,-697,3,3,0,694XX4,-3084YY0,1430XX3,-446YY0..."

Any help will be greatly appreciated!


Click here to read the entire post