Help for this page
($txt = '123abc') =~ /(a|b|c)/;
- check for c -> fail
4. 123^abc - check for a -> succeess, $1 becomes 'a'
($txt = 'barefoot') =~ /(foo|foot)/;
- check for foot -> fail
5. bare^foot - check for foo -> success, $1 becomes 'foo'
($txt = 'arvec') =~ /(ar|ec|vec)$/
3. ar^vec - check for ar$ -> fail
- check for ec$ -> fail
- check for vec$ -> success, $1 becomes 'vec'
Non-existent; I don't have TV
Non-existent; my TV doesn't have/need a remote
Under my control; I watch alone
Under the control of whoever shouts loudest
Under the control of whoever gets it first
One of many, and the TV has a mind of its own
Results (93 votes),