E
eldwin
Hey all,
I'm trying to search and replace to the following string:
0|1061203|150200559802-12345|STUDIO
0006979867|STUDIO|0066678||STUDIO|150200559802-12345|STAFF|XX|STAFF|XX|
What I want to do is replace whatever is in between | |.
For example, I want to replace STAFF with PROSTAFF.
my current regex looks like this:
s/\|.*\|XX\|/\|PROSTAFF\|XX\|/g
So, I'm not concerned with STAFF so much, but what's in between | |. I
know "|" is a special character thus the "\" before it.
When I apply this regex to my code, the resulting string is:
0|PROSTAFF|XX|
Thanks in advance for any advice.
I'm trying to search and replace to the following string:
0|1061203|150200559802-12345|STUDIO
0006979867|STUDIO|0066678||STUDIO|150200559802-12345|STAFF|XX|STAFF|XX|
What I want to do is replace whatever is in between | |.
For example, I want to replace STAFF with PROSTAFF.
my current regex looks like this:
s/\|.*\|XX\|/\|PROSTAFF\|XX\|/g
So, I'm not concerned with STAFF so much, but what's in between | |. I
know "|" is a special character thus the "\" before it.
When I apply this regex to my code, the resulting string is:
0|PROSTAFF|XX|
Thanks in advance for any advice.