Good day.
My text file content below.My parse code :constant fixup private AlarmFileName = <A "C:\\TMP\\ALARM.LOG">constan +t fixup ConfigAlarms = <U1 0> /* U1 Format */
if(/^\s*(constant)\s*(fixup|\/\*fixup\*\/|)\s*(private|)\s*(\w+)\s+=\s ++<([a-zA-Z0-9]+)\s+([a-zA-Z0-9])+>\s*(\/\*\s*(.*?)\s*\*\/|)(\r|\n|\s) +/)
i don't know how to replace the code "s+([a-zA-Z0-9])+>" to handle both the [a-zA-Z0-9] (0 above) string and the quated string ("C:\TMP\ALARM.LOG" above).
thank you.In reply to How to parsing quoted strings in my case. by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |