Search results

Jump to navigation Jump to search
  • $ScriptVer = [regex]::matches(($MyInvocation.MyCommand.Name), "(?<=v)[0-9]+(\.[0-9])+(?=.)") $name = [regex]::matches($esx.Name, "(^\b((25[0-5]|2[0-4]\d|[01]\d\d|\d?\d)\.){3}(25[0-5]|
    57 KB (5,986 words) - 10:08, 19 December 2011
  • ...lt = ([regex]::Matches($result, "(\b\d)(.*)(?=\s)"))[0].Value # HP regex to extract "2.102.440.0" for example ...s($row.BiosVer, "[A-Z]\d{2} 20\d{2}-\d{2}-\d{2}"))[0].Value # HP regex to extract "A19 2010-09-30" for example
    18 KB (2,044 words) - 15:34, 26 September 2016
  • $ScriptVer = [regex]::matches(($MyInvocation.MyCommand.Name), "(?<=v)[0-9]+(\.[0-9])+(?=.)") $name = [regex]::matches($esx.Name, "(^\b((25[0-5]|2[0-4]\d|[01]\d\d|\d?\d)\.){3}(25[0-5]|
    60 KB (6,255 words) - 10:05, 19 December 2011
  • To extract text that matches a regex... $res = [regex]::matches($line, "\d{4}-[A-Za-z]{3}-Week\d{1}.log")
    20 KB (2,448 words) - 14:42, 21 June 2013
  • $ScriptVer = [regex]::matches(($MyInvocation.MyCommand.Name), "(?<=v)[0-9]+(\.[0-9])+(?=.)") $name = [regex]::matches($esx.Name, "(^\b((25[0-5]|2[0-4]\d|[01]\d\d|\d?\d)\.){3}(25[0-5]|
    63 KB (6,615 words) - 09:49, 19 December 2011
  • ...: ESX name wrong when known by VC with IP Address (name now extracted with regex to handle name being IP) $ScriptVer = [regex]::matches(($MyInvocation.MyCommand.Name), "(?<=v)[0-9]+(\.[0-9])+(?=.)")
    17 KB (1,830 words) - 22:06, 25 October 2011
  • ...: ESX name wrong when known by VC with IP Address (name now extracted with regex to handle name being IP) $ScriptVer = [regex]::matches(($MyInvocation.MyCommand.Name), "(?<=v)[0-9]+(\.[0-9])+(?=.)")
    18 KB (1,879 words) - 08:50, 12 October 2011
  • ...: ESX name wrong when known by VC with IP Address (name now extracted with regex to handle name being IP) $ScriptVer = [regex]::matches(($MyInvocation.MyCommand.Name), "(?<=v)[0-9]+(\.[0-9])+(?=.)")
    18 KB (1,898 words) - 10:09, 19 December 2011
  • ...: ESX name wrong when known by VC with IP Address (name now extracted with regex to handle name being IP) $ScriptVer = [regex]::matches(($MyInvocation.MyCommand.Name), "(?<=v)[0-9]+(\.[0-9])+(?=.)")
    18 KB (1,908 words) - 10:09, 19 December 2011
  • $esxName = [regex]::matches($esx.Name, "(^\b((25[0-5]|2[0-4]\d|[01]\d\d|\d?\d)\.){3}(25[0-5]|
    13 KB (1,247 words) - 08:52, 12 October 2011
  • ...Perl Compatible Regular Expressions], a widely used [[Regular_Expressions|Regex]] system
    13 KB (1,990 words) - 13:59, 27 April 2013
  • $vmCreated.ByUser = [regex]::Replace($Task.UserName, "YourDomain\\", "")
    31 KB (3,550 words) - 08:52, 19 October 2016

View (previous 20 | next 20) (20 | 50 | 100 | 250 | 500)