comma in regex
- Posted by jessedavis Oct 31, 2010
- 936 views
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