regex match between strings code example Example 1: regex word between strings? (?<=This is)(.*)(?=sentence) Example 2: regex match anything between .* Ex: john.*