Description Usage Arguments Value Examples
Returns the program size, a very approximate measure of a regexp's "cost". Larger numbers are more expensive than smaller numbers.
1 |
pattern |
a pre-compiled regular expression or a string |
... |
further arguments passed to |
a integer
1 2 3 | get_expression_size(re2("1"))
get_expression_size(re2("(1)"))
get_expression_size(re2("(?:(?:(?:(?:(?:.)?){100})*)+)"))
|
[1] 5
[1] 7
[1] 1504
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.