![regex test regex test](https://4.bp.blogspot.com/-bmzNFCqdxdY/WRze-KnzwDI/AAAAAAAAAYY/fv2M5j3dWQYIb378fCU_rkcsEh804G5hQCEw/s1600/%25D0%2591%25D0%25B5%25D0%25B7%25D0%25B8%25D0%25BC%25D0%25B5%25D0%25BD%25D0%25B8-5.jpg)
The app includes some documentation for using regular expressions in R.The screen shot below shows the explanation for our regex: “t(es)(t)”.
![regex test regex test](https://texttransformer.com/tthelp/regextest_en.jpg)
As noted in the UI these explanations are provided by .au There’s additionally a collapsable panel that will do it’s best to break down your regex and explain the components.In the screen shot below we see we matched 2 instances of “test”, and each of these matches display below them the contents of the 2 capture groups we included in our regex pattern. The second output is a bulleted list of the matches and capture groups found in our test string.If our matching pattern was “t(e(s))(t)” the highlighting wouldn’t display correctly. As noted in the UI, currently nested capture group highlighting isn’t supported.The test string is shown with the matches/capture groups highlighted where they appear in the text.After the pattern and test string are entered we see 2 different versions of the resulting pattern matching:.Test String: type the text that you want your Matching Pattern to search through.Matching Pattern: type the regular expression or fixed pattern here that you want to use to match against your text.If you don’t like this behavior, and you’d rather type half of the slashes needed to make the regex functional in R, you can select the “Auto Escape Backslashes” option for “Pattern” and then use “\.” to match literal periods in the app.For example, if you want to match a literal period with a regex you’ll type “\\.” (as if you were writing the regex in R).The other 2 options concerning backslashes allow you to write an R flavored regex.
![regex test regex test](https://brothersgrimmseeds.com/wp-content/uploads/2020/04/Apollo-Haze-Seed-Pack-1-scaled.jpg)