How to find Article ID of Dotnetfunda?

Posted by Rajnilari2015 under PowerShell category on | Points: 40 | Views : 220
In this code snippet we will look into how to find the article id of dotnetfunda using PowerShell

What is Article ID?

Let's say we have a URL as ""
In this example, the value 3158 is the article ID


$string = ""
$separator = "/"
$option = [System.StringSplitOptions]::RemoveEmptyEntries
$line = $string.Split($separator,$option)

In the $line = $string.Split($separator,$option) we are splitting the array.

And in the $line[$line.count..0][1] we are performing a reverse of the array and picking up the second element from the array collection which is 3158.

Comments or Responses

Login to post response