I have a problem that I appear to be unable to solve myself and would greatly appreciate any help with.
Need to match a string, which consists of a range of alphameric characters, while each of those characters (including whitespaces) may be randomly substituted for with a *. For example the line:
A quick brown fox
May be represented as:
A*qui*k *rown fox
or:
**quick*br*wn *ox (or even *****************)!
Now, I've tried doing it through the use of regular expressions (in the form of [A|\*][[ ]|\*] etc.), but I just can't seem to make it function as my regexp matches on any string with a capital 'A' in it no matter how I tweak it around.
Need to match a string, which consists of a range of alphameric characters, while each of those characters (including whitespaces) may be randomly substituted for with a *. For example the line:
A quick brown fox
May be represented as:
A*qui*k *rown fox
or:
**quick*br*wn *ox (or even *****************)!
Now, I've tried doing it through the use of regular expressions (in the form of [A|\*][[ ]|\*] etc.), but I just can't seem to make it function as my regexp matches on any string with a capital 'A' in it no matter how I tweak it around.