I'm building a log parser in dart. How can I use dart regex library to retrieve matching values.
Using this link to check my regex, everything is ok wih the following :
- Regex :
(?<suffix>^.*m)(?<time>\d{1,2}:\d{1,2}:\d{1,2},\d{1,3}) (?<level>[^\s]+) (?<message>.*)
- Input : [0m[31m22:25:57,366 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-8) MSC000001: Failed to start service jboss.deployment.unit."bad.war".
Entering these values will give you : suffix, time , level and message
I'm not able to use my regex with the dart library.