[Solved] Find wildcard not working

Discuss the word processor
Post Reply
THEBookMan
Posts: 107
Joined: Wed Sep 30, 2015 10:03 pm
Location: Houston, TX area

[Solved] Find wildcard not working

Post by THEBookMan »

Have list of 1000+ in Writer like this:

BOOKMAN --- Jim@BookMan-Jim.Biz 1/10/17

Would like to replace "BOOKMAN --- " w/ ""

Tried "* --- ", "[alpha]+ --- ", "[:alpha:]+ --- " and ""[:Alpha:]+ --- ""(w/ double quotes)
all w/ "Regular Expressions" both on and off.

Would also like to del date (not in all entries)

Any suggestions are appreciated.
TNX
Jim [THE Book Man]
Last edited by Hagar Delest on Thu Nov 23, 2017 2:43 pm, edited 1 time in total.
Reason: tagged solved.
Open Office 4.1.3 Win 10
FJCC
Moderator
Posts: 9271
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: find wildcard not working

Post by FJCC »

These work for me

Code: Select all

[:alpha:]+ --- 
.+ --- 
^.+ --- 
with Regular Expressions turned on. Each has a trailing space to match the space between the last - and the J.
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
THEBookMan
Posts: 107
Joined: Wed Sep 30, 2015 10:03 pm
Location: Houston, TX area

Re: find wildcard not working

Post by THEBookMan »

Tried all 3 of those.

All returned "None Found"

(What are you talking about....There are 100's there, you *%*&^$@#@)

Anything else I should try? OO Settings, maybe?
Tnx
Last edited by THEBookMan on Fri Nov 17, 2017 7:32 pm, edited 1 time in total.
Open Office 4.1.3 Win 10
User avatar
RoryOF
Moderator
Posts: 34611
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: find wildcard not working

Post by RoryOF »

In Find and Replace window drop More Options and make sure "Regular expressions" is checked.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
FJCC
Moderator
Posts: 9271
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: find wildcard not working

Post by FJCC »

Please post a small example document for which you have confirmed that your search fails. You can make this by copying a sample of text from your full document. To post a document, click Post Reply and then look for the Upload Attachment tab below the box where you type a response.
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
THEBookMan
Posts: 107
Joined: Wed Sep 30, 2015 10:03 pm
Location: Houston, TX area

Re: find wildcard not working

Post by THEBookMan »

Regular expressions is √ed

ANTHONY --- davidant1963@hotmail.com 2/6/2007
APPERSON --- whipple@apk.net
APPERSON --- Aubrey.Apperson@huntington.com
APPLEMAN --- marigolds27@yahoo.com
APRIL --- savanna_mccaslin@hotmail.com
ARCHABALD --- ladycoldfingers@yahoo.com
ARGENTO --- mickeygiroux@yahoo.com 01/29/08
ARMENTROUT --- jebest@flash.net
Open Office 4.1.3 Win 10
User avatar
RoryOF
Moderator
Posts: 34611
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: find wildcard not working

Post by RoryOF »

This lets us see the data, but we can'r see the internal structure of the document, which may be causing the problem.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: find wildcard not working

Post by acknak »

I can't think why FJCC's suggestions might not work, but here's a slightly different attempt:

Search for: ^.*\s+\-\-\-\s+
Replace with: empty
Options/Regular expressions: ON

Click Replace All

Or, click "Find" to see what happens. If nothing matches, then I agree: we need to see a small sample document.
AOO4/LO5 • Linux • Fedora 23
THEBookMan
Posts: 107
Joined: Wed Sep 30, 2015 10:03 pm
Location: Houston, TX area

Re: find wildcard not working

Post by THEBookMan »

^.*\s+\-\-\-\s+ Worked like a charm!

Thanks to all.
Jim [THE Book Man]
Open Office 4.1.3 Win 10
THEBookMan
Posts: 107
Joined: Wed Sep 30, 2015 10:03 pm
Location: Houston, TX area

Re: find wildcard not working

Post by THEBookMan »

SOLVED!
Open Office 4.1.3 Win 10
Post Reply