Regex help

They have: 568 posts

Joined: Nov 1999

I'm working on a news updater that should be out in about a month. So far it's going pretty good but yesterday I encountered something I need a little help with.

The user can use a template to update each post with.

It looks like this

<title><br>
<font size=1>Posted by <author> @ <date></font><br>
<story><br><br>

The problem is I want the user to be able to edit the news with ease AFTER they change the template. This is where the problem is.

I need to replace <title> <author> <date> and <story> with (.+?). I can do this, but I need those to be useable in regular expressions.

Is this possible?

They have: 103 posts

Joined: Apr 1999

That is where XML comes in. For news posting, XML is the supremo. Look into using it. I'm not too experienced with using it, but if you search CPAN, I'm sure you can find a good module for it, or maybe someone can suggest some other resources...

------------------
Gil Hildebrand, Jr.
Senior Web Developer, 4atcost.com

Gil Hildebrand, Jr.
Internet Consultant
New Orleans, LA

They have: 1,587 posts

Joined: Mar 1999

a news updater for a persons site, like what's new at the site or grab news off other sites?

------------------
CLICK 4 some tested resources for making money $, hosting, and web promotions.
My Site got hacked, but i'm coming back?

Traffic-Website.com free traffic, affiliate programs, hosting, & domain names.
My Site got hacked, but i'm coming back?

They have: 66 posts

Joined: May 1999

Why not just store the data in SQL?

------------------
-Blur

They have: 568 posts

Joined: Nov 1999

Nevermind, I got it to work. For anyone that is curious it was the /q and /e switches

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.