mIRC Home    About    Download    Register    News    Help

Print Thread
#198467 29/04/08 11:23 AM
Joined: Jan 2008
Posts: 22
D
dassa Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Jan 2008
Posts: 22
I need a regex that would grab the middle tokens of a string. meaning everthing but the ones on the sides. example token token token token token token

I am aware it can be done via other methods but its a regex am after grin

Thanks

dassa #198476 29/04/08 02:10 PM
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
Something like this should work:


/^.+ (.+) .+$/


-genius_at_work


Link Copied to Clipboard