regex to match EOF -
I have some data that looks like this
John, Dave, Chris Rick , Sam I'm using this regex to match the names
/ (\ w. +?) (\ R \ n | \ n |)) / which works for the most part but after the last word, the file abruptly ends, which means the last value does not end in \ r \ n , \ n or , This EOF ends with EOF matches in Regex No way Mitigation I do, so I can put it right in the other group?
Answer this question \ z I took a while to understand, but Now it works. Note that, \ A matches the beginning of the entire string (contrary to the match with the ^ and $ beginning of one line).
Comments
Post a Comment