Ad Widget

Collapse

Use proc_num to find processes with slightly differing names

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • UniLEDLS
    Junior Member
    • Nov 2022
    • 11

    #1

    Use proc_num to find processes with slightly differing names

    I have a template that checks if a particular process is running. 9 times out of 10, this process is called lednet.exe - However, in some instances, there will be a process that is lednet 1043.exe or lednet 1045.exe instead. I realise proc.num isn't regex compatible itself, but the cmdline is. Can anyone help with producing a regex string that would allow me to search if any of those similar processes are running? My regex skills are somewhat limited.
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    lednet(.*)\.exe
    Regular expression tester with syntax highlighting, explanation, cheat sheet for PHP/PCRE, Python, GO, JavaScript, Java, C#/.NET, Rust.

    Comment

    Working...