Test, validate and match regular expressions
Matches coordinate-like expressions beginning with 'x' or 'X', optionally followed by up to two characters from a set including '=', space, or null, and then a 6- or 7-digit number. This pattern is useful for extracting X-axis values from grid references, map data, or log files where the coordinate is prefixed with X. The global flag allows finding all such occurrences in a text.