Hi, I have one question about how to use nunjucks to match strings using regular expressions.
I have a string in the format like "Title: A Content: B" and I want to extract A and B respectively. The documentation of nunjucks only says that the regular expressions in it have the test() method which is used to return whether the pattern exists instead of the content. Is there a way to match strings?
Hi, I have one question about how to use nunjucks to match strings using regular expressions.
I have a string in the format like "Title: A Content: B" and I want to extract A and B respectively. The documentation of nunjucks only says that the regular expressions in it have the
test()
method which is used to return whether the pattern exists instead of the content. Is there a way to match strings?Thanks in advance.