07-12-2010 04:22 AM
Hi, everyone, the following is about component code that I'd would like to store in a .xls file. I'm using LabVIEW 2009
I would like to match these words in bold, but I don't know how to handle the attributes ! And I don't find the suitable Regex
<(?<b>.*).*></\k<b>>
The regex should match upper and lower case,
thanks in advance
eg :
<td width="124"><p align="center"><b><font color="blue" size="3">PS1</font></b></p></td>
<TD WIDTH="125"><P ALIGN="CENTER"><B><FONT COLOR="BLUE" SIZE="3">PS3</FONT></B></P></TD>
<td width="125"><p align="center"><b><font color="blue" size="3">MFC11</font></b></p></td>
Solved! Go to Solution.
07-12-2010 05:39 AM
07-12-2010 10:01 AM
I found a solution, I'm sharing it with you 😄
07-12-2010 11:56 AM
I don't know about you, but I like Jim's solution better....
Tip: CSS is the preferred method for sylizing text, rather than using tags like <b>. A preferred alternative is to use the <strong> tag.
07-12-2010 02:05 PM
I like my second solution even better, although I haven't thoroughly tested it. I don't think it'll work for an arbitrary number of tags.
07-12-2010 03:08 PM
@bauer65 wrote:
I found a solution, I'm sharing it with you 😄
I thought you were kidding... What a solution.
(Or, "What? A solution?")
07-13-2010 04:18 AM
What's wrong with you ? why are you so mean ?
I made my Vi and it works on my station : you give an URL address and it operates on the source code to find what are between
"<tag>what I want to get back</tag>
07-13-2010 05:08 AM
I didn't intend to be mean. I apologize. You used a :D, which made me think you were laughing at your own solution (so I thought you were kidding) and your original post said nothing about getting information from a URL.
Please forgive me or, at least, ignore my impolite post.
07-13-2010 09:24 AM
@bauer65 wrote:
What's wrong with you ? why are you so mean ?
I made my Vi and it works on my station : you give an URL address and it operates on the source code to find what are between
"<tag>what I want to get back</tag>
That's not a fair response. Based on your original post you indicated that you were looking for the bolded text. Jim's solution was very clean, and it's irrelevant whether you're getting the string from a URL or from a string constant. In your solution I see no searching for bold text, and your line "<tag>what I want to get back</tag>" implies that you're actually trying to perform something completely different than what you initially asked for. So perhaps it would be best if in the future the problem is stated a bit more clearly to prevent any confusion or misinterpration.
07-13-2010 11:53 AM