tarahmarie
March 8th, 2011, 07:43 PM
The dot is a wildcard character, but what if I want to search for a string that contains a dot? Here's an example:
java.awt.dnd
I am new at regex, so when I would previously search for java.awt, I would search for *.awt, because it would at least match what I wanted. Now, I am dealing with bigger docs, and I need to search for java.awt and exclude java.awt.dnd. I am not sure what to do about the dots, since now I will need to include them in the regex, but they represent wildcard characters. I've been going through tutorials like this one: http://www.regular-expressions.info/quickstart.html but no joy.
java.awt.dnd
I am new at regex, so when I would previously search for java.awt, I would search for *.awt, because it would at least match what I wanted. Now, I am dealing with bigger docs, and I need to search for java.awt and exclude java.awt.dnd. I am not sure what to do about the dots, since now I will need to include them in the regex, but they represent wildcard characters. I've been going through tutorials like this one: http://www.regular-expressions.info/quickstart.html but no joy.