comma in regex

new topic     » topic index » view thread      » older message » newer message

haystack:  ,"2010-01-04 00:00:06.0","2442733BDLYJNNJNB  
needle: year at beginning of string 
 
pattern:  r:regex pat1 = r:new(",\\"([0-9]+) .+") 
 
commas are NOT special characters according to the manual 
 
error message: <0132>:: Syntax error - expected to see possibly ',', not '(' 
r:regex pat1 = r:new(",\\"([0-9]) .+") 
 
I have tried some variations, unsuccessfully.  Whenever a comma appears in the pattern there is a problem. 
 
Any thoughts? 
 
Thanks, 
jd 

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu