Deprecated: Creation of dynamic property Timber\Site::$pingback is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Site.php on line 180

Deprecated: Creation of dynamic property Timber\User::$name is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/User.php on line 118

Deprecated: Creation of dynamic property Timber\Post::$old_id is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_thumbnail_id is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$ext-thumbnail_url is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_edit_last is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$_yoast_wpseo_metadesc is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_date_gmt is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$comment_status is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$ping_status is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_password is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_name is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$to_ping is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$pinged is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_modified is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_modified_gmt is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_content_filtered is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$guid is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$menu_order is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$post_mime_type is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$comment_count is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$filter is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71

Deprecated: Creation of dynamic property Timber\Post::$status is deprecated in /var/www/html/web/app/themes/ilsoftware/vendor/timber/timber/lib/Core.php on line 71
Rimuovere le tag html da un documento con OpenOffice.org | IlSoftware.it

Rimuovere le tag html da un documento con OpenOffice.org

Supponiamo di avere a che fare con un documento HTML, aperto in forma testuale con la suite per l'ufficio OpenOffice.

Supponiamo di avere a che fare con un documento HTML, aperto in forma testuale con la suite per l’ufficio OpenOffice.org. Si desideri eliminare dal documento tutte le tag HTML in modo da ottenere un testo “pulito” da rielaborare successivamente.

La procedura è piuttosto semplice e può essere messa in pratica ricorrendo al comando Modifica, Cerca e sostituisci quindi all’utilizzo delle “regular expressions”.

Le “regular expressions” o “espressioni regolari” sono stringhe di caratteri attraverso le quali si possono descrivere insiemi più ampi di stringhe, in base a specifiche regole sintattiche.

Dopo aver aperto, in OpenOffice.org, il documento contenente le tag HTML, si dovrà cliccare sul mneù Modifica, sulla voce Cerca e sostituisci, quindi cliccare sul pulsante Altre opzioni.

Il passo successivo consiste nello spuntare la casella Espressioni regolari e digitare, nella casella Cerca quanto segue: <([:alpha:]+)[^>]*>([^<]*)</(\1)>
Nella casella Sostituisci con, invece, si dovrà inserire semplicemente $2.

Il pulsante Cerca consentirà di rendersi conto di come le tag HTML vengano correttamente individuate ed evidenziate. Premendo il pulsante Sostituisci tutto, OpenOffice.org provvederà ad effettuare, in unico passaggio, tutte le sostituzioni.

E’ bene tuttavia osservare che le tag HTML saranno opportunamente rimosse se e solo se queste sono indicate nel modo corretto. Ad esempio, una tag HTML <b> che non è stata successivamente chiusa con </b> non verrà eliminata dal documento.
Per eliminare le altre tag che dovessero essere rimaste ancora presenti nel documento, si ricorra all’inserimento nel campo Cerca della stringa <[:alpha:]+[^>/]*/> lasciando vuota la casella Sostituisci con.

Ti consigliamo anche

Link copiato negli appunti