-
Here's a substitution group: FoxReplace.json{
"version": "2.6",
"groups": [
{
"name": "NFT",
"urls": [],
"substitutions": [
{
"input": "\\(non-fungible token(s)?\\)",
"inputType": "regexp",
"outputType": "text",
"output": "(yes, you read that correctly)",
"caseSensitive": false
},
{
"input": "\\(NFT(s)?\\)",
"inputType": "regexp",
"outputType": "text",
"output": "(yes, you read that correctly)",
"caseSensitive": false
},
{
"input": "non-fungible tokens",
"inputType": "wholewords",
"outputType": "text",
"output": "URLs on blockchain",
"caseSensitive": false
},
{
"input": "non-fungible token",
"inputType": "wholewords",
"outputType": "text",
"output": "URL on blockchain",
"caseSensitive": false
},
{
"input": "NFTs",
"inputType": "wholewords",
"outputType": "text",
"output": "URLs on blockchain",
"caseSensitive": false
},
{
"input": "an NFT",
"inputType": "wholewords",
"outputType": "text",
"output": "a URL on blockchain",
"caseSensitive": true
},
{
"input": "An NFT",
"inputType": "wholewords",
"outputType": "text",
"output": "A URL on blockchain",
"caseSensitive": false
},
{
"input": "NFT",
"inputType": "wholewords",
"outputType": "text",
"output": "URL on blockchain",
"caseSensitive": false
}
],
"html": "none",
"enabled": true,
"mode": "auto&manual"
}
]
} With this activated I mosey on over to NFT on Wikipedia. Before applying substitutions:
After applying substitutions:
That's not what I expected, though. The pattern with second-highest priority is Let's compare to the Investopedia article on NFT. Before applying substitutions:
After applying substitutions:
That is what I expected. So what's different with Wikipedia? 🤔 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Because in Wikipedia Since substitutions are applied element by element, your second regex does not match. |
Beta Was this translation helpful? Give feedback.
Because in Wikipedia
NFT
is inside<b>
tags, but the parentheses are outside:Since substitutions are applied element by element, your second regex does not match.