<<long identifier with spaces>> <<freq>>
examples:
-- intel core duo t2400 2000 ghz => should parse to
{title: "intel core duo t2400", freq: '2000 ghz'}
-- intel core 2 duo 2000 ghz => should parse to
{title: "intel core 2 duo", freq: '2000 ghz'}.
in this case identifier may include number.
But it doesn't work. It always tries to include '2000' to title.
It seems like it eats all text until it can and it doesn't consider all possible variants like Regex does.
For example, this regex '[a-z][a-z\d ]+ (\d+ ghz)' will find the result.
Is this the behaviour of Parslet by design and cannot be changed or I am using it wrong?
I have simple texts to parse.
I have rules:
But it doesn't work. It always tries to include '2000' to title.
It seems like it eats all text until it can and it doesn't consider all possible variants like Regex does. For example, this regex '[a-z][a-z\d ]+ (\d+ ghz)' will find the result.
Is this the behaviour of Parslet by design and cannot be changed or I am using it wrong?