I guess the forward slash doesn't mean what I thought it meant. And I thought it meant nothing.
Let's say I have a URL like:
and I search this string for the regex /162/.
I thought that would match. It doesn't.
regex 162 DOES match.
So what exactly do the forward slashes here mean, and why did my including them kill my ability to match?
What I am really wanting to do is the equivalent of *162*. But I know that I probably don't need to tell regex
[wildcard]162[wildcard], so in my feeble regex memory, I thought I had to use slashes to indicate that this is the pattern I'm trying to match anywhere in the text.
I'm basically fooling around and trying to do a string .contains, but using regex. Meaning, just simply checking the source text to see if it contains a substring.
Thanks
i.e. /162/.
https://regex101.com/r/qZAJeL/2