borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Windows Screen Updating)Next Topic (retrieving data from database) New Topic New Poll Post Reply
AndreaVB Forum : VBA (Access, Excel, Word, ...) : Conditional Insert
Poster Message
imatrox05
Level: Trainee

Registered: 14-02-2006
Posts: 1

icon Conditional Insert

Hi,

I am currrently working on an app that converts HTML document into XML according to my specifications.

My problem is that there are various font tags that needs to be replaced

example

i have lots of font tags that needs replacement. And the list is as follows

<FONT FACE="MathematicalPi 1>xxx</FONT> || >
<FONT FACE="Univ GreekwMathPi>xxx</FONT> || >
<FONT FACE="MathematicalPi 1>xyz</FONT> || &#8805;
<FONT FACE="MathematicalPi 1>abc</FONT> || <
<FONT FACE="Univ GreekwMathPi>def</FONT> || <
<FONT FACE="MathematicalPi 1>ghi</FONT> || &#8804;
<FONT FACE="Univ GreekwMathPi>jkl</FONT> || &#8242;
<FONT FACE="Univ GreekwMathPi>mno</FONT> || &equals;
<FONT FACE="MathematicalPi 1>pqr</FONT> || &#8242;

Where xxx could be anything a character or a number

I want to remove the font tags and replace the xxx value with the replacement character

Here's a sample

This is the original Tag
Test<font face="mathetical pi 1" color="#000000"> ghi</font> Interview

Now i want to just display

Test &#8804; Interview

Similarly

if any dont names containg the name Bold then a <b> </b> tag should be automatically insterted

eg Test <font face="GroteskBold">xxxx</font>

Shoud be repaced to Test <b>xxxx</b>

I know this is a bit too much. But i am stuck...Please help me out.

Thanks in advance

14-02-2006 at 05:29 AM
View Profile Send Email to User Show All Posts | Quote Reply
~Bean~
Level: VB Guru


Registered: 07-04-2003
Posts: 488
icon Re: Conditional Insert

First off, I suggest you use some CSS for formatting. You could easily factor this into your app. What app are you using anyways? Is this in an Office application (VBA) or VB?

Another question, you said:

quote:
This is the original Tag
Test<font face="mathetical pi 1" color="#000000"> ghi</font> Interview

Now i want to just display

Test &#8804; Interview


So you don't want to display the "ghi"?





____________________________
Eggheads unite! You have nothing to lose but your yolks.
16-02-2006 at 01:58 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : VBA (Access, Excel, Word, ...) : Conditional Insert
Previous Topic (Windows Screen Updating)Next Topic (retrieving data from database) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder