zlocm
-
Posts
7 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Gallery
Posts posted by zlocm
-
-
-
Is there any way to automize update process ?
I mean something like Eclipse RPC, that provides such services.
-
I have expression:<tr id = "ololo">Hello World <br> !!!</tr>
Output should be: Hello World !!!
But, it was: My sequence:Hello World <br> !!!
This library (perl regexp) works fine with python, so this regexp get right result, but LAbView not.
This pthon script:
[/color][color=#1C2837]import reif __name__ == '__main__': data = '''<tr id = "ololo">Hello World <br> !!!</tr>''' table_regex = re.compile("<(.*?)>",re.IGNORECASE) print("FIRST EXRESSION ---------------------") print(table_regex.search(data).group()) print("SECOND EXRESSION---------------------") p2 = data[table_regex.search(data).end():] print(table_regex.search(p2).group()) print("THIRD EXRESSION---------------------") p3 = p2[table_regex.search(p2).end():] print(table_regex.search(p3).group()) pass[/color][color=#1C2837]
returns:
FIRST EXRESSION ---------------------
<tr id = "ololo">
SECOND EXRESSION---------------------
<br>
THIRD EXRESSION---------------------
</tr>
so, this regexp should works fine.
What's the problem? What should the output be?
As far as the problem in your original VI, you're using Shift Registers with the Match Regular Expression node incorrectly. You can't use the Offset After Match if you're only going to search what was found before and after the previous match. Savvy?
Yours will not miss nested tags line break characters. If the tag spans multiple lines the "bad" regular expression will fail.
Oh, you right, thanks.
-
-
I try to delete all html tags from sequence (like <.....>). But LabView don`t find all of tags in me sequence.
My sequence: <tr id = "ololo">Hello World <br> !!!</tr>
Regexp: <(.*?)>
My vi (LV 2009) is in attachements.
Regerds.
[CR] XBee API Mode API
in Code Repository (Uncertified)
Posted
Name: XBee API Mode API
Submitter: zlocm
Submitted: 13 Jan 2012
Category: *Uncertified*
LabVIEW Version: 2010
License Type: BSD (Most common)
This is simple library for parsing XBee API packets.
Click here to download this file