diff --git a/language/oop5/basic.xml b/language/oop5/basic.xml
index 0e707d75aa..1f6c17747a 100644
--- a/language/oop5/basic.xml
+++ b/language/oop5/basic.xml
@@ -18,7 +18,7 @@
name starts with a letter or underscore, followed by any number of
letters, numbers, or underscores. As a regular expression, it
would be expressed thus:
- [a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*.
+ ^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$.
A class may contain its