Directly from http://java.sun.com/docs/books/tutorial/essential/regex/index.html
To require the match to occur only at
the end of the previous match, use \G:
Enter your regex: dog
Enter input string to search: dog dog
I found the text "dog" starting at index 0 and ending at index 3.
I found the text "dog" starting at index 4 and ending at index 7.
Enter your regex: \Gdog
Enter input string to search: dog dog
I found the text "dog" starting at index 0 and ending at index 3.
Here the second example finds only one
match, because the second occurrence
of "dog" does not start at the end of
the previous match.
So no, it would not do exactly the same as your example. I do think if you'd change the regex to "(.)" you'd get the same effect as "\G." in this contrived example. But "(\w)" would go on searching after a whitespace while "\G\w" would fail at that point.