Ad
  • Custom User Avatar

    ?<= denotes a 'positive lookbehind'.

    Basically the regex is looking for any character between a-z(or A-Z, which is unnecessary because the scan() function is automatically case insensitive) where the preceding character is #{letter}

    E.g if letter = f

    The regex would match fa but not f.