class_regexmatch.rst 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the RegExMatch.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_RegExMatch:
  5. RegExMatch
  6. ==========
  7. **Inherits:** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Member Functions
  12. ----------------
  13. +--------------------------------------+---------------------------------------------------------------------------------------------------------+
  14. | :ref:`int<class_int>` | :ref:`get_end<class_RegExMatch_get_end>` **(** :ref:`Variant<class_variant>` name=0 **)** const |
  15. +--------------------------------------+---------------------------------------------------------------------------------------------------------+
  16. | :ref:`int<class_int>` | :ref:`get_group_count<class_RegExMatch_get_group_count>` **(** **)** const |
  17. +--------------------------------------+---------------------------------------------------------------------------------------------------------+
  18. | :ref:`Dictionary<class_dictionary>` | :ref:`get_names<class_RegExMatch_get_names>` **(** **)** const |
  19. +--------------------------------------+---------------------------------------------------------------------------------------------------------+
  20. | :ref:`int<class_int>` | :ref:`get_start<class_RegExMatch_get_start>` **(** :ref:`Variant<class_variant>` name=0 **)** const |
  21. +--------------------------------------+---------------------------------------------------------------------------------------------------------+
  22. | :ref:`String<class_string>` | :ref:`get_string<class_RegExMatch_get_string>` **(** :ref:`Variant<class_variant>` name=0 **)** const |
  23. +--------------------------------------+---------------------------------------------------------------------------------------------------------+
  24. | :ref:`Array<class_array>` | :ref:`get_strings<class_RegExMatch_get_strings>` **(** **)** const |
  25. +--------------------------------------+---------------------------------------------------------------------------------------------------------+
  26. | :ref:`String<class_string>` | :ref:`get_subject<class_RegExMatch_get_subject>` **(** **)** const |
  27. +--------------------------------------+---------------------------------------------------------------------------------------------------------+
  28. Member Function Description
  29. ---------------------------
  30. .. _class_RegExMatch_get_end:
  31. - :ref:`int<class_int>` **get_end** **(** :ref:`Variant<class_variant>` name=0 **)** const
  32. Returns the end position of the match in the string. An integer can be specified for numeric groups or a string for named groups. Returns -1 if that group wasn't found or doesn't exist. Defaults to 0 (whole pattern).
  33. .. _class_RegExMatch_get_group_count:
  34. - :ref:`int<class_int>` **get_group_count** **(** **)** const
  35. Returns the number of numeric capturing groups.
  36. .. _class_RegExMatch_get_names:
  37. - :ref:`Dictionary<class_dictionary>` **get_names** **(** **)** const
  38. Returns an array of names of named capturing groups.
  39. .. _class_RegExMatch_get_start:
  40. - :ref:`int<class_int>` **get_start** **(** :ref:`Variant<class_variant>` name=0 **)** const
  41. Returns the starting position of the match in the string. An integer can be specified for numeric groups or a string for named groups. Returns -1 if that group wasn't found or doesn't exist. Defaults to 0 (whole pattern).
  42. .. _class_RegExMatch_get_string:
  43. - :ref:`String<class_string>` **get_string** **(** :ref:`Variant<class_variant>` name=0 **)** const
  44. Returns the result of the match in the string. An integer can be specified for numeric groups or a string for named groups. Returns -1 if that group wasn't found or doesn't exist. Defaults to 0 (whole pattern).
  45. .. _class_RegExMatch_get_strings:
  46. - :ref:`Array<class_array>` **get_strings** **(** **)** const
  47. .. _class_RegExMatch_get_subject:
  48. - :ref:`String<class_string>` **get_subject** **(** **)** const