92. Evaluate the following expression using meta character for regular
expression:'[^Ale|ax.r$]'
Which two matches would be returned by this expression? (Choose two.)
A. Alex
B. Alax
C. Alxer
D. Alax endar
E. Alex ender
expression:'[^Ale|ax.r$]'
Which two matches would be returned by this expression? (Choose two.)
A. Alex
B. Alax
C. Alxer
D. Alax endar
E. Alex ender
Answer: DE
解题:
'[^Ale|ax.r$]': [^.....]不匹配字符list |: or .:任意一个字符
字符串: [Ale|ax.r$] 匹配Alex,Alax ,Alxer ,A,l,e,a.............
在取反:所以DE正确