How can I perform a RegEx match in Twig? Is it possible to perform a RegEx match on a string in Twig?

I'm looking for something like this:

{% set string = "This is **string**. **wer**  qewr **234**" %}
{% set match  = string.matches(/([*][*])(.*)([*][*])/g) %}
Currently Twig uses regular expressions only with Comparisons:

{% if string matches '{^[\d\.]+$}' %}
    Do Stuff
{% endif %}


Craft itself currently doesn't have any custom Twig filters or functions either.

But there are third-party plugins which might help you: 


Twig PCRE Filters
Low Regex