Re: TMCL Regexp constraint
Lars Marius Garshol <[email protected]>
| Newsgroups | gmane.text.xml.xtm.general |
|---|---|
| Message-ID | <[email protected]> |
* Robert Cerny > > Thanks for leading the way to the well hidden answer. I agree that it should be that way. Lars Heuer is right, of course: the correct answer is: a. the boundaries are implicit That is, if your regular expression is "foo", it's interpreted to mean "^foo$". > But i must admit the example threw me off and would suggest a change so that it becomes clearer. The current example matches any string which *contains* a phone number. I think a better example would be any string that *is* a phone number. The example requires the value to actually *be* a phone number, just like you suggest. I guess I mislead you when I mistakenly wrote that (b) was the answer. --Lars M. http://www.garshol.priv.no/tmphoto/ http://www.garshol.priv.no/blog/