At 21:55 24/12/2014 -0700, Constantine Marberg wrote:
Dear Brian, you are the greatest.

Er, not quite yet, it appears!

I still have a small problem. What I mean, you can see at the following example:
[...]

I cannot quote your example, as my under-performing mail client won't do Greek characters: sorry. But your examples include non-alphabetic characters after the Greek and before the German.

The semicolon or tab should be before the number and the parenthesis. Please tell me this last thing, I really don't know how to.

Two solutions: take your pick.

1. The previous expression included [^a-z] - which matches any non-alphabetic character. You need to extend this list to exclude anything else that might occur in the second part. Taking just your examples, this might include the digits 0 to 9, a dot, the paragraph mark, and parentheses. Note that some of these have meanings in regular expressions and you need to "escape" them in such an expression if you want them to be interpreted literally. You do this by preceding them with a backslash. So you could search for:
([^a-z0-9\.ยง\(\)]*) (.*)
- but note that you may have to add other rogue characters that might occur in your text.

2. Better might be to approach the problem directly: searching for the Greek instead of what is not Greek (as you indeed originally suggested). I avoided this earlier because (1) I wasn't sure it would work (it does!) and (2) I knew I couldn't actually write out the required expression including Greek characters in a message. But you should be able to search for:
([a-o ]*) ([^a-o].*)
- but with both those "a"s and "o"s actually meaning lower-case Greek alphas and omegas (so replaced with those characters), and replace as before.

... it is very important to me, for you to know, that I am not one of this lazy guys who let others do the work for them without googling or reading the documentation themselves first. I really try very hard my self first and then ask for help.

Oh, I was just joshing! I didn't think otherwise. (Or I might not have cared to investigate and reply.)

I hope I can do something in return for you to show you my appreciation.

No need!

I trust this helps.

Brian Barker


--
To unsubscribe e-mail to: [email protected]
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Reply via email to