Match key to regex
See original GitHub issueI would benefit from having a schema for variable key names.
Proposed syntax:
BookSchema = new SimpleSchema({
title: {
type: String,
label: "Title",
max: 200
},
'^property_' : {
keyIsRegex: true,
blackbox: true
}
});
Issue Analytics
- State:
- Created 9 years ago
- Comments:17
Top Results From Across the Web
Match key-value pattern regex - Stack Overflow
So far I have ([a-zA-Z0-9]+):"(.*)" which will match most keys and values but obviously it wont be able to handle more than a...
Read more >Regular Expression or RegEx examples - BlueGrid.io
Example #4 - Match only keys in the query string (ignore values). Unlike in one of the previous examples, we needed to match...
Read more >key-value pair - Regex Tester/Debugger
Match anything enclosed by square brackets. Find Substring within a string that begins and ends with paranthesis · Simple date dd/mm/yyyy · Blocking...
Read more >Tie::Hash::Regex - Match hash keys using Regular Expressions
If there's no exact match on the key that you pass to the hash, then the key is treated as a regex and...
Read more >9.15. Match INI Name-Value Pairs - Regular Expressions ...
You want to match INI parameter name-value pairs (e.g., Item1=Value1 ), separating each match into two parts using capturing groups.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Has there been any progress on this? This would be the exact solution to an issue we’re having currently.
Hi @aldeed, thanks for your latest update. Do you have any ETA on this feature at this time? Thanks