Matching the [ character #881
-
Hi there,
the idea being that I'd tag it with the below, but this will be interpreted as a group: nlp(text).match("[*]").text() Is there a way to escape "special" characters? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Hey Justin, this is a really good idea. It's not currently possible, but I'd be happy to add support for this somehow in v14. |
Beta Was this translation helpful? Give feedback.
-
solution for v14 (unreleased): let regs = [{ word: 'may' }, { pre: '[' }]
let m = nlp('may, [2019] foo').match(regs)
m.text()
// 'may, [2019]' looking like december. |
Beta Was this translation helpful? Give feedback.
solution for v14 (unreleased):
looking like december.