[766] in Coldmud discussion meeting

root meeting help first previous next next in chain last in chain last

escaping characters in match_regexp()

daemon@ATHENA.MIT.EDU (Wed Aug 16 11:21:18 1995 )

Date: Wed, 16 Aug 1995 11:17:44 -0400
To: coldstuff@MIT.EDU
From: quinn@vv.com (Quinn)


Isn't \c supposed to match any character c, stripping it of any special meaning?

;match_regexp("^.+_[0-9]+", "$foo_1")
--> [[1, 6], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0],
 [0, 0]]
(Used 4 ticks, 0 seconds.)

;match_regexp("^\$.+_[0-9]+", "$foo_1")
-> 0
(Used 4 ticks, 0 seconds.)

Doesn't seem to work.  If this is a known bug, please excuse my ignorance.

-Quinn