SearchStr - Forum

Forum Navigation
You need to log in to create posts and topics.

SearchStr

Hi,

How can you search for \ or " within a variable - can you use ASCII code in visualneoweb like visualneowin?

Thanks,

 

@adrianbrookbank

How can you search for \ or " within a variable - can you use ASCII code in visualneoweb like visualneowin?

The equivalent thing to do in VisualNEOWeb is to use the UnicodeToChar command to populate variables with these special characters e.g.

UnicodeToChar 34 [neoDoubleQuotes]
UnicodeToChar 92 [neoDivisionSign]

... then, the StrSearch command would look something like ...

StrSearch "[neoDoubleQuotes]" "[myString]" "[neoDoubleQuotesPosition]"

where [myString] is your variable with these special characters that you want to search ...

In case you need Unicodes for some of the other special characters ...

UnicodeToChar 91 [neoOpen]
UnicodeToChar 93 [neoClose]
UnicodeToChar 124 [neoBar]
UnicodeToChar 13 [neoCR]
UnicodeToChar 34 [neoLF]
UnicodeToChar 9 [neoTab]

For a full list ... https://www.rapidtables.com/code/text/unicode-characters.html ... after you mouse click, the HTML code (e.g. &#92) gives you the Unicode (92).

luishp has reacted to this post.
luishp

@gaev thank you, scraping some html and this is working great. Cheers.