in reply to search of a string in another string with 1 wildcard
What have you tried? If not String::Approx then that might be worth a look. You could specify there to be a maximum of 1 substitution with no insertions or deletions which I guess would fulfil your requirements.
The question is also sufficiently general that it says nothing about the use case. It could well be that there is a more appropriate method which relies on some domain knowledge. Without the context we cannot know about this.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: search of a string in another string with 1 wildcard
by carolw (Sexton) on Jul 09, 2014 at 14:29 UTC | |
by hippo (Archbishop) on Jul 09, 2014 at 14:36 UTC |