What is the purpose of a single number in brackets directly after a command in parentheses?

I am working with a script I got online that is getting information from a webpage using Invoke-WebRequest. A portion of one of the commands is in parentheses, followed by a single number in brackets. I haven’t heard of that before; what is the purpose? Here’s the command in question:

($ItemInfo -split "<span class=`"nobr`">")[1] 

Sorry if this is a dumb question. I’ve got some experience with PowerShell but I’m either not familiar with this. Thanks for your help!

submitted by /u/jerdub1993
[link] [comments]

Leave a Reply