How would I use the rex statement to obtain a given number of characters to the left & right of an indicator. For example - here is the string I am evaluating.
Plummeting *[oil]* prices have eroded the value
I want to return a string with 11 characters to the left & 11 characters to the right of data that is enclosed in the *[oil]* brackets. Therefore, my desired output is.
Plummeting *[oil]* prices hav
Here is my unsuccessful effort.
<rex "w/11[^\*\[] W/" $variable>
thx.
Plummeting *[oil]* prices have eroded the value
I want to return a string with 11 characters to the left & 11 characters to the right of data that is enclosed in the *[oil]* brackets. Therefore, my desired output is.
Plummeting *[oil]* prices hav
Here is my unsuccessful effort.
<rex "w/11[^\*\[] W/" $variable>
thx.