Regular Expressions 101

Community Patterns

Community Library Entry

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 - 3 years ago (Last modified 3 years ago)