Wildcard inside string

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!

You can use the regex method


Refer to below screenshot.


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