Rufnex has asked for the wisdom of the Perl Monks concerning the following question:
i'm looking for regular expr. for extract the title from a html-document. i've the following:
which on is better .. or do you have another on? Next, i've a regular expr. to get rid from all html-tags:/<title>([^<]*)/i /(?i)<title>(.*?)<\/title>?/i
same above .. which one is better or do ya have the best for this topic ;o)?s/<[^>]+>//g; /<(?:[^>'"]*|(['"]).*?\1)*>//gs;
thx a lot
Rufnex
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Which one is the better Regex?
by broquaint (Abbot) on Feb 27, 2003 at 13:42 UTC | |
by IlyaM (Parson) on Feb 27, 2003 at 15:25 UTC | |
|
Re: Which one is the better Regex?
by Abigail-II (Bishop) on Feb 27, 2003 at 13:49 UTC | |
by Rufnex (Novice) on Feb 27, 2003 at 14:11 UTC | |
by Abigail-II (Bishop) on Feb 27, 2003 at 14:30 UTC | |
by PodMaster (Abbot) on Feb 28, 2003 at 07:45 UTC | |
|
Re: Which one is the better Regex?
by dws (Chancellor) on Feb 27, 2003 at 19:40 UTC |