StringExtrasGetFirstRepetition Method |
get first block of repetitions in string
Namespace: ANDREICSLIB.ClassExtrasAssembly: ANDREICSLIB (in ANDREICSLIB.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static Tuple<int, int, int> GetFirstRepetition(
string instr,
string pattern,
int minCount = 2
)
Public Shared Function GetFirstRepetition (
instr As String,
pattern As String,
Optional minCount As Integer = 2
) As Tuple(Of Integer, Integer, Integer)
public:
static Tuple<int, int, int>^ GetFirstRepetition(
String^ instr,
String^ pattern,
int minCount = 2
)
static member GetFirstRepetition :
instr : string *
pattern : string *
?minCount : int
(* Defaults:
let _minCount = defaultArg minCount 2
*)
-> Tuple<int, int, int>
Parameters
- instr
- Type: SystemString
- pattern
- Type: SystemString
- minCount (Optional)
- Type: SystemInt32
Return Value
Type:
TupleInt32,
Int32,
Int32count,start position, end pos - must be more than mincount
See Also