PDA

View Full Version : Regular Expression in google


chesss
12-28-2005, 12:19 PM
I just came across this page which talks about using some regular expressions in google. Unfortunately it isn't detailed enough for me probably because my knowledge of regex in minimum. Searching for more help doesn't lead to anything substantial a well.

From: http://www.cre8asiteforums.com/forums/lofiversion/index.php/t2413.html

^ Matches beginning of input line i.e /^2/ does not match the 2 in "1 2" but does so in "20, 21 or 22 etc"
* Matches preceeding char 0 or more times /bo*/ ="book, boot or boook" but not "boat, bot"
? matches 0 or 1 times /e?el?/ = "el in angel and le in angle

Can someone explain in more detail, or just point me to some tutorial?

Thanks

darrensmithkk
12-30-2005, 05:27 AM
This link will help you

http://www.zvon.org/other/PerlTutorial/Output/example1.html

Darren

chesss
01-03-2006, 10:44 AM
I was looking for a regex in google tutorial(or explanation) not a regex tut :)

coz regex doesn't seem to work well in google. Example: "this /bo*/ awas written by" gives different results than "this book was written by'. Infact the first query which(with regex returns only 2 results)