One of these days I'm going to master reular expressions -- my
"Mastering Regular Expressions" book tells me so! but until then . . .

I'm looking to match a string every time it is not preceded or
followed by a letter. (But punctuation or white space following
or preceding it is fine.) The string will always be the same (I'll use
"Booty" as my example).

For example, I would want to match:
Booty
Booty (with a space)
Booty,
 Booty.
"Booty"

etc., but not:

Bootylicious

When I find Booty, I want to do some formatting to Booty, but not to
the punctuation or space following or preceding.

for example, change "Booty," to "_Booty_,"

I'm doing this in a php environment. Can anyone help or point me in the
direction of a "dummies" tutorial?

Thanks,

Dave

____________________
BYU Unix Users Group
http://uug.byu.edu/
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to