I haven't used the find and replace dialogue too much and I'm not even sure if what I want to do is possible.
I need to find occurrences of a word that are ALWAYS followed by space and then a digit, and replace JUST the word, not the space and digit.
So,
Matt 12.1 needs to be replaced with Mt. 12.1
But the digits will always be different, so I would use the digit element. Can I tell Mellel to leave the digit it finds?
help with Find and Replace
Moderators: Eyal Redler, redlers, Ori Redler
Re: help with Find and Replace
Figured it out. About the only thing I want to say is that the Mellel Guide isn't particularly helpful for this
-
- Knows everything, can prove it
- Posts: 980
- Joined: Wed Oct 26, 2005 12:48 am
- Location: IE, CA, USA
Re: help with Find and Replace
I'm curious, how were you able to do this? I tried constructing a FindSet that I thought would do, but it didn't find my test string.DanZac wrote:Figured it out. About the only thing I want to say is that the Mellel Guide isn't particularly helpful for this
I'd assume a regex would be:
Code: Select all
[a-zA-Z]+(\ \d)
— Robert Cameron
Re: help with Find and Replace
I try to deal with such issues in my Beginners Tutorial for Mellel, in the find and replace chapter. I'd appreciate your taking a look at that, and letting me know if the explanation of the method proves to be unsatisfactory.
Don Broadribb
Don Broadribb