update regex so it doesn't match substrings...such as 'linen' or 'phosphatidylcholine'#2
update regex so it doesn't match substrings...such as 'linen' or 'phosphatidylcholine'#2ratacat wants to merge 1 commit intoRanvierMUD:masterfrom
Conversation
…sphatidylcholine'
|
Does this work if you type "IN" or "INTO"? Your RegEx isn't case insensitive (eg, |
|
If we're only matching the specific words "in" and "into" IMO it would be better to |
|
Or if you don't mind a few extra clock-cycles, you could do: |
|
I would vote for a NB: even tighter regex |
|
I accomplished this by modifying the regex like so:
This matches "in" and "into", is case insensitive, and only matches a whole word. I understand there's a lot of disdain for regex and it hinders code readability, but I found this approach to be simpler than doing a |
No description provided.