Skip to content

regex question on escaping "." (and a couple other regex questions as well)

2 messages · Mark Kimpel, David Winsemius

#
On Jan 7, 2010, at 2:47 PM, Mark Kimpel wrote:

            
there is an intervening "0" in between the matching 1-9 group and the  
first period causing a pattern failure for match of "160." with "[1-9]+ 
\\."
?regex  # what else?
Where or perhaps what is "vector"? Why should we think it has an  
"escape character" in it? In some sense I think you have an  
epistemological problem. There can be back-slashes in strings, but  
they are not escape characters at that point.
David Winsemius, MD
Heritage Laboratories
West Hartford, CT