I would like to set up some filters to remove items from a list of text. For example, culling out words that are ALL CAPS, or removing non-alphabetic characters. Is this possible with keyboard maestro? I found a filter function, but it doesn't seem to do what I'm looking for.
The KM Search and Replace action using RegEx should be able to do what you need.
But you will need to post a real-world example of your source text, and of the desired resultant text, using the Forum Code Block.
Please make sure you provide examples for all of your use cases.
Hi guys! Thanks for the quick reply!! What I'm trying to do right now is replace the first character of a string but ONLY if the string begins with a capital S.
For instance:
SBaltic Sea
should become:
[whatever I want to be here]Baltic Sea
I know I can use the replace macro but i am clueless as to the regex code.
Your description is still a little bit ambiguous. I presume that you mean the first character of a line and not a word when your say "string". And that is why Sea is not changed to [whatever I want to be here]ea
Under that assumption the Regex is:
Search for: ^S
Replace with: [whatever I want to be here]
^ at the beginning of a Regex specification means "at the beginning of a line"
S means the character capital S.