By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,432 Members | 795 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,432 IT Pros & Developers. It's quick & easy.

Street address.

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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.