| 
Paragraph
FindAllPattern Method
  | 
 Finds all occurrences of the specified regex pattern in the text and returns them as an array of TextSelection.
 Namespace:
 Spire.Doc.Documents
 Assembly:
Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
 Syntax
Syntax
 
 
public TextSelection[] FindAllPattern(
	Regex regex
)
 
Public Function FindAllPattern ( 
	regex As Regex
) As TextSelection()
 
public:
array<TextSelection^>^ FindAllPattern(
	Regex^ regex
)
 
member FindAllPattern : 
regex : Regex -> TextSelection[] 
 
 
 
Parameters
 
- 
regex
 
- 
 Type:
 
System.Text.RegularExpressions
Regex
 
 The regex pattern to search for.
Return Value
 
 Type:
 
TextSelection
 
 An array of TextSelection representing all occurrences of the pattern in the text, or null if no occurrences are found or the pattern is empty or null.
 
 See Also
See Also