Hello String-matching Monks,
Here is the problem:
I have string such as
xyz123abcwhich I need to look for in a file. However, the string in the file may contain one or more period characters, e.g.
xyz123abcor
xy.z123abcor
xyz1.23.abcThe only approach that occured to me was to create all the possible strings by inserting periods and then look for the generated strings. This is obviously going to scale badly for long strings.
Can anyone think of a smarter way of addressing the problem?
Thanks,
In reply to Matching strings differing by a number of periods by loris
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |