Complete the code to subscribe to all channels starting with 'news.'.
PSUBSCRIBE [1]The pattern 'news.*' matches all channels starting with 'news.' followed by any characters.
Complete the code to subscribe to all channels ending with '.update'.
PSUBSCRIBE [1]The pattern '*.update' matches any channel name that ends with '.update'.
Fix the error in the pattern to subscribe to channels with exactly one character after 'log'.
PSUBSCRIBE [1]The '?' wildcard matches exactly one character, so 'log?' matches channels like 'log1' or 'loga'.
Fill both blanks to subscribe to the channels 'chat.room1' and 'chat.room2'.
PSUBSCRIBE [1] [2]
To subscribe to specific channels 'chat.room1' and 'chat.room2', list both patterns explicitly.
Fill all three blanks to subscribe to channels matching these patterns: any channel starting with 'user.', any channel ending with '.alert', and any channel containing 'error'.
PSUBSCRIBE [1] [2] [3]
The patterns 'user.*', '*.alert', and '*error*' match the required channel names for subscription.