MATCH GROUPS
You can also use a regular expression to match one or more substrings. In order to do this, you should put part of the regular expression between round brackets. Here I have two groups (sometimes called ‘captures’), the first tries to match the string ‘hi’, the second tries to match a string starting with ‘h’, followed by any three characters (a dot means ‘match any single character’ so the three dots here will match any three consecutive characters) and ending with ‘o’: