Build, test, and debug regular expressions
Matches the literal text 'pathElement' in any letter casing, but only when it appears as a complete path segment between forward slashes, such as '/api/pathElement/v2'. The lookbehind (?<=\/) and lookahead (?=\/) ensure the match is bounded by slashes on both sides, so it won't match inside longer segments like 'pathElementX'. With the 'g' flag it finds all occurrences across multiple lines, making it useful for parsing URLs, file paths, or routing configuration where a specific segment must be extracted or validated.