I have data delimited by ^
Sample:
12^eeyryr^^1122^122121^qtyewtwewt^dgheg37636^^^^s^
I would like to find the <n>th occurence of the ^
For example to find the first ^
I used \^ reg expressions and perl. I happily went to each ^
Next I tried to go to every 2nd ^ and tried \^{2}
But that did not do what I want. You regex guys are probable laughing now.
Next I tried \^[^\^]{2}
That failed too.
Also note on some "fields" they are empty like ^^ or more together.
All help is appreciated.
Sample:
12^eeyryr^^1122^122121^qtyewtwewt^dgheg37636^^^^s^
I would like to find the <n>th occurence of the ^
For example to find the first ^
I used \^ reg expressions and perl. I happily went to each ^
Next I tried to go to every 2nd ^ and tried \^{2}
But that did not do what I want. You regex guys are probable laughing now.
Next I tried \^[^\^]{2}
That failed too.
Also note on some "fields" they are empty like ^^ or more together.
All help is appreciated.