Jump to content

Search question


Recommended Posts

I'm looking for a smarter or better way to search for bank BSB numbers on a case.

 

Currently I have a list of some hundred or so BSB's in this format "123-123" note the hyphen.

 

Now according to what I know and the documentation the '-' hyphen symbol should be ignored unless it is preceded by an escape symbol, or '\'

 

However, in this case searching for 123-123 is showing up results with the hyphen, and NOT results without the hyphen, ie 123 123.

 

So now I'm looking for a reliable way to search for BSB's that will include the following results

123-123 

123123

123 123

 

Without me having to go and manually retype all the hundred odd BSB numbers on my keyword list to include the other possibilities.

Link to comment
Share on other sites

Hello Adam,

 

For the first two examples, a regular expression might work:

 

/[0-9]{3}\-?[0-9]{3}/

 

This won't work for the third case, however, as it includes a token delimiter (space), So the final query should combine that with a phrase pattern:

 

/[0-9]{3}\-?[0-9]{3}/ OR "[0-9]{3} [0-9]{3}"

Link to comment
Share on other sites

For those not in the land-down-under

BSB
A BSB (Bank/Branch Number) is a 6-digit number that identifies banks and branches in Australia. It stands for 'Bank-State-Branch'. A Commonwealth Bank BSB starts with 06, for example, 06_ - _ _ _. To make a transfer, you'll need your recipient's BSB and account number.
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...