Ad
  • Default User Avatar

    if i am i right the regex matches the '-' or the _ along with the next character (that is what the \w is for) and also the reason for the charAt(1) to select the character at position 1 in this case the \w character and capitalize it.

    i am new here so i hope i am not loosing honor replying to this comment. Dont really know how things work here yet