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