OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Using regular expressions to remove text

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc
View previous topic :: View next topic  
Author Message
vandadm
Newbie
Newbie


Joined: 18 May 2012
Posts: 1

PostPosted: Fri May 18, 2012 9:05 am    Post subject: Using regular expressions to remove text Reply with quote

Hello.

I'm having an issue regarding using regular expressions to find and remove text.

I have a spreadsheet with a lot of HTML code in the cells. I'd like to remove all of the HTML code, but also some of the text in between certain tags.

For example, I'd like to remove all text in between <ul> and </ul> tags in my spreadsheet, including the HTML tags themselves.

Where I'm completely lost is how to set up the search to actually find all the text.

Any help would be most appreciated. Thanks!

vandadm
Back to top
View user's profile Send private message
probe1
Moderator
Moderator


Joined: 18 Aug 2004
Posts: 2465
Location: Chonburi Thailand Asia

PostPosted: Fri May 18, 2012 7:25 pm    Post subject: Reply with quote

Welcome to the forum


SEARCH <ul>.*</ul>

REPLACE with nothing (leave empty), check regular expression.

Does this help?
_________________
Cheers
Winfried
My Macros
DateTime2 extension: insert date, time or timestamp, formatted to your needs
Back to top
View user's profile Send private message Visit poster's website
Villeroy
Super User
Super User


Joined: 04 Oct 2004
Posts: 10065
Location: Germany

PostPosted: Sat May 19, 2012 5:04 am    Post subject: Reply with quote

To eliminate the remaining tags, you can load the html in a browser and copy the resulting text from there.
_________________
Rest in peace, oooforum.org
Get help on http://forum.openoffice.org
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Calc All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group