Hi everyone

my boss just came down on me with a slavish task and I was hoping
someone here had an easy (scripting?) solution for it. I've never
written a line of code, so please forgive if my expectations are
unrealistic.

I hava a huge file and need to change things repeatedly in the
following manner:

The lines I need to change ALWAYS follow a line saying

<MTypeName `Index'> (so easy to find)

Then the line I need to change reads for example

<MText `N.: suprascapularis'>

and needs to be changed to

 <MText `N. suprascapularis; Nervus suprascapularis'>

i.e.

- delete the colon after in this example the "N."
- insert a semicolon before the " ' "
- repeat the term
- but replace the "N." with "Nervus" (or, if it's a "V." with "Vena"
and there are about 8 different possibilities to be replaced with
different words)

I Imagine for someone who knows what they are doing, this should be a
ridiculously simple task, needing a few lines of code. For me, on
foot, so to say, it'll probably take a week or so.

Could anybody help me out here?

All the best, thegermanguy

-- 
You received this message because you are subscribed to the 
"BBEdit Talk" discussion group on Google Groups.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
<http://groups.google.com/group/bbedit?hl=en>
If you have a feature request or would like to report a problem, 
please email "[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to