Well, since it's not a multiline operator in CF, it's pretty useless as a multiline operator. :-)
However, it's useful for anchoring the beginning and end of the string. Nice for validation when you want, for example, an email address and nothing else. --Ben Patric Stumpe wrote: > Hi Ben, > > thanks for hint - once again :) > But what is the multiline operater good for after all? At least if you > can't use the caret and the dollar sign? > > Greetz > Patric > > >> CF doesn't interpret $ as end-of-line but end-of-string. Similarly, ^ >> is beginning of string, not line. I'd use [#chr(10)##chr(13)#]+ instead. > >> You'd be surprised how often this trips up people that learned regex on >> other systems (e.g., Perl). You know. People like me. :-) > >> --Ben > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:21:962 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/21 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:21 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.21 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
