You are here

How can I use variable as delimiter for scrubbing?

2 posts / 0 new
Last post
doubleg
Offline
Joined: 7 years
Last seen: 4 years
How can I use variable as delimiter for scrubbing?

Hi There,

Congrats for the hard work and the nice tool. It took me some time to figure it out, but I am getting better every day. I am working on my second INI file and I ran into troubles. I would like to scrub the index page, save a string into a variable and later use it as a BS delimiter to find something else. I use the following code:

index_temp_1.scrub{singe(debug)|showinfo|info_|"|</span}  * This captures the id i.e. 123456
index_temp_2.scrub{single(debug)|'index_temp_1'":||\},|}

But in the log I see that index_temp_1 has not been replaced with it's value, hence nothing was captured:

[  Debug ] Debugging information SiteIni
[  Debug ] Element:  INDEX_TEMP_2
[  Debug ] html source written to : C:\ProgramData\ServerCare\WebGrab\html.source.htm
[  Debug ] scrub strings:
[  Debug ]      type & arguments : single(debug)
[  Debug ]      blockstart   (bs): 'index_temp_1'":
[  Debug ]      elementstart (es): 
[  Debug ]      elementend   (ee): \},
[  Debug ]      blockend     (be): 

Is that possible? 

Regards

doubleg
Offline
Joined: 7 years
Last seen: 4 years

Thanks for helping. I have actually just found out I was using the old documentation v. 1.1.1. 
Nevertheless, I gave up on this as I found another way of getting what I want. 

BTW, if I use global_temp_1 instead of index_temp_1 I don't get an output in the log:

## outputs to log:
index_temp_1.scrub{singe(debug)|showinfo|info_|"|</span} 

### no output in log:
global_temp_1.scrub{singe(debug)|showinfo|info_|"|</span} 

I am using  V1.56.28

 

Log in or register to post comments

Brought to you by Jan van Straaten

Program Development - Jan van Straaten ------- Web design - Francis De Paemeleere
Supported by: servercare.nl