April 2nd, 2009, 07:20 AM
Match after n-th occurrence of something
I have a string full of parameters separated by '|'s and am looking for a way to match the value after the n-th '|'. ( I know i could split them but ... you know ...)
I'm sure there a way to do this in regex ... but how??
my string looks something like this:
is a really feeble attempt and obviously doesn't work but I should spare you of all the versions I tried.
Thankful for your hints:
April 2nd, 2009, 07:43 AM
Try it like this:
Comments on this post
April 2nd, 2009, 09:17 AM
Cool. Yeah that helped! Cheers!
April 2nd, 2009, 09:19 AM
Originally Posted by jwmoebius