Help for this page

Select Code to Download


  1. or download this
    $string =~ m/(?:(?=.*?X)X|(?!.*?X))(\S+)/;
    
  2. or download this
    $string1="abcX123";
    $string2="abc123";
    ...
    
    $string2 =~ m/(?:(?=.*?X)X|(?!.*?X))(\S+)/;
    print "$1\n";
    
  3. or download this
    123
    abc123