Hi Courtney,
thanks for your reply!
There is actually no problem. I was trying to feed the new pages feed into another application and wanted to get rid of the tables in there, because they where not needed. So I am talking wiki syntax tables.
I have now settled with "{[^}]+}" which is far from perfect, because it also matches (partially) on templates. But that's ok.
The ultimate goal was to run new pages through a twitterfeed and into our twitter.. ;-) Twitterfeed only grabs the title and the first couple of words (until the 140 character limit obviously). Currently I am using Yahoo Pipes to clean up the mess that is wiki syntax... ;-)
Another idea, which comes to my mind just now, would be to have the new pages show the rendered html page rather than the wiki source. Possible? Is there a switch?
Thanks, matsch
Am Wed, 05 Aug 2009 08:56:27 -0400 schrieb "Christensen, Courtney" ChristensenC@BATTELLE.ORG:
On the wiki-text side or the html side?
If you told us the problem there might even be a better solution.
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Matthias Korn Sent: Tuesday, August 04, 2009 4:42 AM To: mediawiki-l@lists.wikimedia.org Subject: [Mediawiki-l] REGEXP for wiki tables
Hi,
can someone come up with a Perl-like regular expression for wiki tables? I just want to throw away all wiki tables in a given string (e.g. a page).
Haven't been successfull so far..
Thanks a lot, matsch