Help for this page

Select Code to Download


  1. or download this
            Input              Output
            ---------------------------------------
    ...
            'a|abc'            'a(bc)?'
            'a|ab|abc'         'a(b(c)?)?'
            'a1|a2|a3'         'a[123]'
    
  2. or download this
            /that|this|thinks|thirst|three/
    
         -> /th(at|i(?:(?:nk)?s|rst)|ree/   ?
         -> /th(?:at|is|inks|irst|ree)/     ?
         -> /th(?:at|i(?:nk)?s|irst|ree)/   ?