Added RegEx.search_all() for multiple matches

And updated the docs
This commit is contained in:
Zher Huei Lee 2017-11-11 08:07:50 +08:00
parent 4c000a05f6
commit 2eba585d38
4 changed files with 77 additions and 37 deletions

View file

@ -88,6 +88,7 @@ public:
void _init(const String &p_pattern = "");
Ref<RegExMatch> search(const String &p_subject, int p_offset = 0, int p_end = -1) const;
Array search_all(const String &p_subject, int p_offset = 0, int p_end = -1) const;
String sub(const String &p_subject, const String &p_replacement, bool p_all = false, int p_offset = 0, int p_end = -1) const;
bool is_valid() const;