in reply to Question on Regex
Here the Tradewind comes on 5th position after the 1st "/". Either I need to extract the text using the position of the "/" or by any other means. Thanks Monk!
Hmm
[ddg://perlfaq nth site:perldoc.perl.org]
perlfaq nth site:perldoc.perl.org
-> perlfaq4#Data: Strings #Data: Strings #How do I change the Nth occurrence of something? #How can I split a [character]-delimited string except when inside [character]?
Close, but no cigar
You can use split
my $fifth = ( split m{/}, $string )[4]; [download]
Thanks Monk....