471,598 Members | 1,058 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,598 software developers and data experts.

Street address.

I need to find and replace US street address from HTML files in C# into
something like this:

[Some string: street address] street address [Some string2], how can I
do this using C# and Regular expression?

Thanks.

Nov 29 '05 #1
2 3038
Well, since you can do almost anything with regex, you may need to be more
specific with your question. The issues that are required is that you would
need a consistent string content. Regex requires predicable patterns in
order to function. Can you give us a real example of the content that needs
to be parsed.

"Zeya" <ze****@gmail.com> wrote in message
news:11**********************@g47g2000cwa.googlegr oups.com...
I need to find and replace US street address from HTML files in C# into
something like this:

[Some string: street address] street address [Some string2], how can I
do this using C# and Regular expression?

Thanks.

Nov 29 '05 #2
Thanks Peter for your pronto response.

Here is the pattern:
Anything inside [] are optional, w - white space, anything inside {} is
information for this posts reader

31231 Street Address[w][[,] characters], City Name, State{2 characters}
12345[[w]-[w]1234]

or

31231 Street Address[w][[,] characters],
City Name, State{2 characters} 12345[[w]-[w]1234]

Nov 29 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Sugapablo | last post: by
4 posts views Thread by Tom Warren | last post: by
5 posts views Thread by Michael C# | last post: by
4 posts views Thread by Robert Fitzpatrick | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by Anwar ali | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.