Hi guys!
I need some help.
How can I use a wildcard inside string? I have a variable string with text and I need to find the index of a certain word.
Example: varString.IndexOf(“Hello guys”) → I need to put a wildcard among Hello and guys, to accept a space or any character…
Thank u all!
@joao.alves
You can use the regex method
System.Text.RegularExpressions.Regex.Match(varStr.ToLower,“(hello).{1,9}(guys)”).index.ToString
Refer to below screenshot.

system
(system)
Closed
3
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.