in reply to Removing first part of string with regex

The ? makes the period optional, so your regex matches the whole word. /[^.]*\.(\S*)/ would work.