I have the sets of string that will always start with ?20 and end with ?30 or ?31 or ?32 and so on.
For example ?20needed_text?30 ?20needed_text?31 and so on...
I need to extract the needed text. It is necessary to stress that needed_text may contain any character including digits, letters, specific characters and etc.
Can anyone help with a proper regex?
I tried the following pattern but it does not work:
"\?20(.*?)\?3[0-9]"
this is my code. I get empty values in my echo...
set regex = new regexp
regex.global = true
regex.pattern = "\?20(.*?)\?3[0-9]"
set payment_purposes = regex.execute(row)
for each payment_purpose in payment_purposes
wscript.echo payment_purpose
next
Thank you.