Creating a new regex based on the returned results and rules of a previous regex | Indexing a regex and seeing how the regex has matched a substring
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am particularly looking at R, Perl, and shell. But any other programming language would be fine too. QUESTION Is there a way to visually or programmatically inspect and index a matched string based on the regex? This is intended for referencing back to the first regex and its results inside of a second regex, so as to be able to modify a part of the matched string and write new rules for that particular part. https://regex101.com does visualize how a certain string matches the regular expression. But it is far from perfect and is not