Post Reply 
How to halt the match after the first instance
Aug. 10, 2019, 07:24 PM (This post was last modified: Aug. 10, 2019 07:26 PM by zoltan.)
Post: #5
RE: How to halt the match after the first instance
Thanks for the examples and refinements.
It took a while but everything seems to be working. It seems you were right about a list error. No code combo would match, so I finally just recreated and named the list, this time from Notepad instead of Metapad, and suddenly it matched.

I did find one oddity. For testing, I pasted in a big list of hundreds of words. When separating them using "|" the list matched all code within the bounds, even if it contained nothing in the list. I found that this started occurring when the list got above aproximately 4400 characters. But when using the line-based list, so far there's no limit.

For the "j" problem, I'm assuming you just meant an instance of a single "j" not the "j" that's part of a name. That probably wouldn't be an issue, but there's also the case where "mary" or "anne" would match "maryanne." The "j" solution should cover that too, right? But I also remember from Exceptions-U that order matters, so if "maryanne" is first, then "anne" and "mary" could come afterword and be treated separately.
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
RE: How to halt the match after the first instance - zoltan - Aug. 10, 2019 07:24 PM

Forum Jump: