Discussion:
Find & replace
Mac
2008-03-19 13:36:41 UTC
Permalink
I have to find & replace a shortening of some Swedish street
addresses in my database and was thinking to use BBEdit for this. But
I can't figure out how. A street name in Swedish can is shortened
like this:

Roads. 10

When writing in full it will be:

Roadstreet 10

So now I am looking for a way to find all addresses ending with "s."
and replace the with "street"

Thanks!
Mats
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <***@barebones.com>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <bbedit-talk-***@barebones.com>
Jared Earle
2008-03-19 14:02:24 UTC
Permalink
Post by Mac
I have to find & replace a shortening of some Swedish street
addresses in my database and was thinking to use BBEdit for this.
http://www.amazon.co.uk/dp/0596528124?tag=twentythreex-21
--
Jared Earle :: There is no SPORK
***@gmail.com :: http://www.23x.net
The Spodcast :: http://spodcast.org
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <***@barebones.com>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <bbedit-talk-***@barebones.com>
Ronald J Kimball
2008-03-19 14:52:19 UTC
Permalink
Post by Mac
I have to find & replace a shortening of some Swedish street
addresses in my database and was thinking to use BBEdit for this. But
I can't figure out how. A street name in Swedish can is shortened
Roads. 10
Roadstreet 10
So now I am looking for a way to find all addresses ending with "s."
and replace the with "street"
Is there something that makes this more than just a straightforward find
and replace? Are the addresses mixed in with other text?

Ronald
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <***@barebones.com>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <bbedit-talk-***@barebones.com>
Fidelis Semper
2008-03-19 15:43:38 UTC
Permalink
Mats~

If the addresses are as straightforward as you have presented them,
how about using Grep-enabled BBEdit to search for:

(.+)s\. (\d+)

and replacing with:

\1street \2

~Semper Fi, Mac!
Post by Mac
I have to find & replace a shortening of some Swedish street
addresses in my database and was thinking to use BBEdit for this.
But I can't figure out how. A street name in Swedish can is
Roads. 10
Roadstreet 10
So now I am looking for a way to find all addresses ending with
"s." and replace the with "street"
Thanks!
Mats
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <***@barebones.com>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <bbedit-talk-***@barebones.com>
Helgi Örn
2008-03-21 11:46:33 UTC
Permalink
Post by Mac
I can't figure out how. A street name in Swedish can is shortened
Roads. 10
Roadstreet 10
Your example is not an example for a swedish streetname, give us a
real life example so that we can understand what you are talking
about.

/HÖ
--
A: Because people read from top to bottom.
Q: Why is top posting bad?
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <***@barebones.com>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <bbedit-talk-***@barebones.com>
Loading...