How to find an address within a string in C#

  • Thread starter Thread starter NHastings25
  • Start date Start date
N

NHastings25

Guest
Hey Everyone,

I am working on a project of which I need to be able to remove a postal address from a response field. This is because this project is not allowed to give out PII data to anyone who exports the data from the system. Could anyone give me a good way to do such? I did some brief looking around and I couldn't find anything online. I know I could use regex possibly but I don't know how to create or format a pattern string. If anyone could help me out with it that would be great.

An example string would be: 5-6 FT WEEDS ALL OVER AT 123 SCHOMER RD (Address changed for PII reasons)

Another Example Being:

CALLER STATES NEIGHBOR HAS A BUNCH OF JUNK, TRASH - CANS, BARRELS, BOARDS, CHAIRS, LOGS ALL TYPE OF DEBRIS IN BACKYARD, IT'S HORRIBLE AND NEEDS REMOVING. CALLER STATES YOU CAN COME ONTO THEIR PROPERTY AT 1234 SUPERIOR ST TO VIEW NEIGHBOR'S BACKYARD.

This is dealing with public government 311 data so that is why I would have to remove such.

Thanks in advance!

Nate

Continue reading...
 
Back
Top