Regular Expressions 101

Community Patterns

AA find Excel command in script

0

Regular Expression
Python

r"
(\{\s*(\"uid\"[\S ]+\s*)(\"commandName\": \"(?!OpenSpreadsheet).*\"[\S ]*\s*)(\"packageName\": \"Excel_MS\"[\S ]*\s*)(\"disabled\"[\S ]*\s*)(\"attributes\": \[(?:[\s\S])*?\])\s*\})
"
gm

Description

find Excel command in script based on json

Submitted by anonymous - 2 years ago (Last modified 2 years ago)