question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Match key to regex

See original GitHub issue

I 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:closed
  • Created 9 years ago
  • Comments:17

github_iconTop GitHub Comments

6reactions
firraecommented, Jul 13, 2016

Has there been any progress on this? This would be the exact solution to an issue we’re having currently.

5reactions
davidecantinicommented, Feb 3, 2016

Hi @aldeed, thanks for your latest update. Do you have any ETA on this feature at this time? Thanks

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found