01-04-2013 11:16 AM - edited 01-04-2013 11:22 AM
When I went to impliment this, I realized because the delimiters are actually telling me something about the following data, I need to know which delimiter was at the beginning of each match. Is there any easy way to get this? There doesn't seem to be (i.e. it's not an output of the function).
01-04-2013 11:23 AM - edited 01-04-2013 11:30 AM
Use my VI, but wire the array of delimiters to the "operators" input instead (leave delimiters unwired), and also autoindex the "token Index" output.
You'll get two arrays, one with small strings and one with indices. Whenever the index is -1, you get the elements of the original solution. If the index is 0 or larger, it points to the element in the delimiter array.
(but wait a few minutes, maybe somebody will post a regex solution :D)
01-04-2013 11:32 AM
@altenbach wrote:
(but wait a few minutes, maybe somebody will post a regex solution :D)
I guess we'll see! Thanks though, works great.
01-04-2013 11:56 AM
Simply change the replace string to:
\n$1\t
Change the output to a 2D array and the first column is your token and the second is the string.
01-04-2013 12:08 PM
Darin, you're slacking. That was more than just a few minutes...
01-04-2013 12:09 PM
@Darin.K wrote:
Simply change the replace string to:
\n$1\t
Change the output to a 2D array and the first column is your token and the second is the string.
Oh regex's...
01-04-2013 12:10 PM - edited 01-04-2013 12:10 PM
@crossrulz wrote:
Darin, you're slacking. That was more than just a few minutes...
He must actually be working today
01-22-2013 02:23 PM
01-22-2013 04:00 PM
@Charles_CLA wrote:
Darin, I'm sure you've seen this already and probably already have the shirt but I couldn't resist posting it as you appear to be the foremost expert on regex in LabVIEW.
I like the shirt. My kids would give me lots of grief if I got it though.