Help for this page

Select Code to Download


  1. or download this
    '  tom  harry  ' =~ m/(?<=tom).*(dick|harry|john)/ && print(1, $/);  #
    + 1
    '  harry  tom  ' =~ m/(?<=tom).*(dick|harry|john)/ && print(2, $/);  #
    + (nothing)
    
  2. or download this
    '  tom  harry  ' =~ m/(?=.*tom).*(dick|harry|john)/ && print('A', $/);
    +  # A
    '  harry  tom  ' =~ m/(?=.*tom).*(dick|harry|john)/ && print('B', $/);
    +  # B