I have 3 rules which are strings like ‘483??’, ‘48310*‘, ’48*’ and I have a source string ‘483102334’ that has to be matched with the above rules to find a rule that matches the closest. In this example the closest match rule is ‘48310*’ since it matches with most number of digits in my source string. I want to acheive this in PL/SQL. Please help!
Share
Something like this will work for the sample data you’ve provided. If you want ‘?’ to be treated differently than ‘*’, however, you’ll have to provide a bit more detail.