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.
In reply to Re: search of a string in another string with 1 wildcard
by hippo
in thread search of a string in another string with 1 wildcard
by carolw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |