Jump to content

reverse string but not esc'd special chars?


Recommended Posts

Posted

Before I go and reinvent another wheel, does anyone have a VI that will reverse a string but not esc'd chars in the string?

For example, if my string is:

find \[this\] text

and I want to find it by searching from the end of my data first, I reverse it and the data before using match pattern. But the reverse is this:

txet ]/siht[\ dnif

what I need is this:

txet \]siht\[ dnif

because I need to preserve the esc'd special chars in the search string so match pattern works.

thanks for any help!

-John

Posted (edited)
  On 9/15/2010 at 1:48 AM, MikaelH said:

Drag the image to your block diagram, (if using 2010).

2009. I just get a hyperlink. But I'm beyond caring now :D.

Edited by ShaunR
Posted
  On 9/15/2010 at 2:23 AM, ShaunR said:

2009. I just get a hyperlink. But I'm beyond caring now :D.

You need to save it to disk first, then drag on diagram. It works on LV2009 too.

I think it has to do with Firefox (or maybe the way LAVA deals with pictures?) because I've dragged them directly to diagram before. Don't sure what has changed since I did that.

Posted
  On 9/15/2010 at 3:15 AM, François Normandin said:

You need to save it to disk first, then drag on diagram. It works on LV2009 too.

I think it has to do with Firefox (or maybe the way LAVA deals with pictures?) because I've dragged them directly to diagram before. Don't sure what has changed since I did that.

Google's the same.

I think IE is the only one to work directly?

Posted
  On 9/15/2010 at 4:48 AM, ShaunR said:

Do people still use that? :P

I hate it too (but am forced to use it occasionally).

I'm a Google Chrome man, its so fast - esp download images on screen etc... I love it.

Posted
  On 9/15/2010 at 7:35 AM, Mellroth said:

If it is all about performance, how about this;

post-5958-041144300 1284535996_thumb.png

/J

Yup. that's my solution too. Except I just used the value d92 instead of a cast

Posted
  On 9/15/2010 at 2:02 PM, ShaunR said:

Yup. that's my solution too. Except I just used the value d92 instead of a cast

Always nice to hear that others think the same :thumbup1:

For clarity I prefer to use the cast, and because of constant folding I believe that there will be no hit in performance.

/J

Posted (edited)
  On 9/15/2010 at 2:20 PM, Mellroth said:

Always nice to hear that others think the same :thumbup1:

Indeed. It confirms my suspicion that I'm really not as stupid as I look :D

  On 9/15/2010 at 2:20 PM, Mellroth said:

For clarity I prefer to use the cast, and because of constant folding I believe that there will be no hit in performance.

Can't argue with that. Readability over elegance (no performance hit). But in contrast to your previous statement. computers definitely don't think like me. :D

Edited by ShaunR

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.