in reply to Regex solution needed
/(?<!game)cocks/
matches an occurrence of cocks that does not follow game, but I'm sure someone with stronger regex-fu will provide a more complete solution.
Bear in mind that your solution does not capture all possible non-vulgar use of cock(s). How about fighting cocks or cock-a-doodle-doo? A popular cheer at South Carolina football games (I am told) is "Hey, how 'bout them cocks!".
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Regex solution needed
by imp (Priest) on Feb 23, 2007 at 16:50 UTC | |
|
Re^2: Regex solution needed
by spivey3587 (Acolyte) on Feb 23, 2007 at 17:01 UTC |