469,904 Members | 2,402 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,904 developers. It's quick & easy.

Regular Expressions RegEx - Need help with syntax

Hi,

I need to see if one work in a set of words is in a string.

You have to ignore punctuation.

You have to match whole words.

Here is the actual requirement from our client:

A fictitious registration cannot be filed electronically if any of the
following (with or without punctuation) is in the business name:

Bank
Banking
Trust Company
Trust Co
Trust Comp
Insurance Company
Insurance Co
Insurance Comp

Example of matches:

The Banking Company
The Bank, Inc
Trust Co. Inc

Examples of non matches:

Trust Coordination
Insurance Coolers
Insurance Competition

Please provide an example of how a regular expression can find these
mataches. Something like:

"Bank\Banking\Trust {Company|Co|Comp}\Insurance {Company|Co|Comp}"

- Thomas
Nov 20 '05 #1
0 785

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by hclugano | last post: by
6 posts views Thread by Craig Buchanan | last post: by
7 posts views Thread by norton | last post: by
7 posts views Thread by Billa | last post: by
3 posts views Thread by a | last post: by
3 posts views Thread by Zeba | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.