My point exactly.
Using \s _prevents_ a user from allowing a trailing whitespace character, which might be something needed in order to assure proper HTML formatting. Even using ' *' will remove the trailing whitespace (space) which might alter the formatting options.
Rather than cripple the ability of the people who need extra formatting, why not make the people entering the bad codes fix them?
Very simply, SUB0/1 should be the first or last thing in the description field, and that is a really simple thing for people to do, and to ensure. It's a lot easier to do the search/replace on the database a single time, than to try to do it each and every time that record is displayed.
Without creating some sort of very complex routine to try to take various options into account, the simple solution initially proposed, or a simple check for begining or ending is more than sufficient. Anything beyond that actually _REMOVES_ flexibility and potential from the routine.
PUGDOG� Enterprises, Inc.
The best way to contact me is to NOT use Email.
Please leave a PM here.
Using \s _prevents_ a user from allowing a trailing whitespace character, which might be something needed in order to assure proper HTML formatting. Even using ' *' will remove the trailing whitespace (space) which might alter the formatting options.
Rather than cripple the ability of the people who need extra formatting, why not make the people entering the bad codes fix them?
Very simply, SUB0/1 should be the first or last thing in the description field, and that is a really simple thing for people to do, and to ensure. It's a lot easier to do the search/replace on the database a single time, than to try to do it each and every time that record is displayed.
Without creating some sort of very complex routine to try to take various options into account, the simple solution initially proposed, or a simple check for begining or ending is more than sufficient. Anything beyond that actually _REMOVES_ flexibility and potential from the routine.
PUGDOG� Enterprises, Inc.
The best way to contact me is to NOT use Email.
Please leave a PM here.