0

Search for the word using regular expression

Regular expression searching data for a word If I want to look up a word ‘ifAdminStatus’ how do I write that regular expression. Do I use the findall? (re.findall(r’[]’,hostInterface))

25th Jan 2019, 3:35 PM
Shyam
Shyam - avatar
2 Antworten
26th Jan 2019, 4:11 AM
Louis
Louis - avatar
0
What's the need for regex? You can just specify "ifAdminStatus".
26th Jan 2019, 4:37 AM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar