[thelist] regex to add html tags in TextPad

Joel D Canfield joel at bizba6.com
Fri Oct 17 18:03:56 CDT 2008


I'd like to select a group of words and use the replace function to
surround it with tags. f'rinstance:
 
    <p>This is some regular text with a few words emphasized in the
middle.</p>
 
I'd like to select 'a few words emphasized', click the magic button, and
get
 
    <p>This is some regular text with <em>a few words emphasized</em> in
the middle.</p>
 
I'm meandering through help stuff about word beginnings and endings,
trying to account for the spaces, but it's defeating me.
 
Thoughts?
 
joel

--
Joel D Canfield
Book at BizBa6.com
916.771.9297 office
916.765.1712 cell
http://BizBa6.com/ <http://bizba6.com/>  

 



More information about the thelist mailing list