Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I found the answer from bonsvr helpful, thank you. From my reading of the code, it seems this was specific to the CZ range of accounts.</p> <p>As I deal mostly with Irish, UK and German IBAN codes I developed this regular expression to replace the line with <code>objRegExp.Pattern =</code> ... with ...</p> <pre><code>objRegExp.Pattern = "^[GB|IE]{2}\d{2}[a-zA-Z]{4}\d{14}|[DE]\d{20}$" </code></pre> <p>I hope this helps someone else, as the initial code helped me. If you wish to add your own countries, extend the above. </p> <p>Note: I removed the provision of spaces (<code>[ ]</code>) as the text I am testing has none. If you wish to add these back every 4 characters, this is easy to do - or simpler still, replace the first line of the code above with:</p> <pre><code>IBAN = Trim(Ucase(Replace(IBAN, " ", ""))) </code></pre> <p>which will eliminate the spaces, trim off any extra spaces at the front and back and convert to upper case. (Trim may be redundant, but belts and braces...)</p> <p>The regex expression is made up of [GB|IE] (GB or IE) allows for either ISO country code followed by the same format of the 2-digit checksum, the 4 character bank code and 14 digits thereafter, as is the case for these two country IBAN formats. The |[DE] allows for another "or" for Germany, followed by 22 digits. To add another country, simply put your text before the $ sign, starting with |. </p> <p>Find other country formats <a href="http://en.wikipedia.org/wiki/International_Bank_Account_Number" rel="nofollow">here</a>. (Wikipedia)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload