Comments (4)
\A
just means the start of the string.
I don't think Ruby regex supports the ungreedy flag, a lot of implementations don't, it's actually strongly discouraged.
Why not just use possessive quantifiers?
from huginn.
In the meantime I managed to change the regexp in such a way it works by only matching the correct string, so Ungreedy is not needed anymore.
Regardless it would be good to know how to correctly set flags. The instructions even mention that flags can be set, but now how it's done correctly.
From the Website agents instruction:
Beware that . does not match the newline character (LF) unless the m flag is in effect, and ^/$ basically match every line beginning/end.
from huginn.
Yeah, but that's just knowing how regex works, not exactly a uniquely Huginn problem.
I'm guessing that line in the agent description was added to reduce support calls. It might be valuable to add that Huginn only supports regex mode modifiers supported by Ruby. Feel free to extend the documentation and make a PR.
from huginn.
I'm asking how to set regex flags in huginn. Nothing else :)
Mode modifiers didn't work when I tried it.
from huginn.
Related Issues (20)
- Is Huginn dead project? HOT 3
- How to use Key Value Store Agent? HOT 5
- Deployment on Heroku fails because heroku-18 stack is gone HOT 1
- Process incoming email from ImapFolderAgent (extract multiple instances from body text) HOT 1
- I have 2 cookie credentials. How to randomly select a cookie HOT 2
- Kubernetes deployment
- Multiple RAW files with dcraw don't work HOT 3
- Multiprocess Docker image creation for GHCR fails
- Help with website agent: Extract emails when Xpaths are different
- Can the Post Agent emit event only when changed? HOT 2
- Javascript Agent JSON.parse is throwing an exception, but the same string can be parsed correctly in the browser HOT 2
- Cannot retrieve data from key value store agent HOT 12
- CSV Agent serialize doesn't output proper CSV file, please provide example HOT 3
- Docker: Failed to register layer HOT 2
- Agent to detect changes in local folder HOT 1
- LocalFileAgent not detecting files
- Website agent refuses to create event if extraction is empty HOT 1
- POST Agent sending token invalid
- DataOutput Agent ... Output feed lifetime / timeout? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from huginn.