Retrieve path from PATH env var that contains "oracle"

(imported topic written by joe9165)

Can anyone help me create a property that will return the first instance of a path that contains “oracle” from the PATH environment variable?

Q: substrings separated by “;” of value of variable “PATH” of environment

A: C:\ORACLE\bin

A: C:\Windows\system32

A: C:\Windows

A: etc.

I just want the Oracle path which won’t always be the first listed.

Thanks!

(imported comment written by joe9165)

I figured it out!

Q: (substrings separated by “;” of value of variable “PATH” of environment) whose (it as lowercase contains “oracle”)

A: C:\ORACLE\bin