regular expression

P

paul vudmaska

I'm doing some html replacement using regular
expressions and i ran into this issue...

Example reg example => /\[b\](.*)\[\/b\]/

....works fine to match bold please but NOT

with bold

please


... where a new line is introduced so i tried this reg
exp...

/\[b\]([.\s]*)\[\/b\]/

and this...
/\[b\]([.\n]*)\[\/b\]/

but neither of the last 2 match at all.

What am i missing?

thanks,:p





__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top