|
|
|
|
Turn Off RegEx
|
|
09-21-2011, 11:31 PM
Post: #1
|
|||
|
|||
|
Turn Off RegEx
I am having problems finding links that look like so "WildNight(69)" as the value is pulled daily from a table. Setting the value to "Wild Night \(69\)" will not work as every run of 200 links might need many link updates. So, is it possible to turn RegEx Off? I found: ObjLink.RegularExpression = False but do not know how to use it. thx for your time Lorena |
|||
|
09-25-2011, 04:14 PM
(This post was last modified: 09-25-2011 04:15 PM by rajpes.)
Post: #2
|
|||
|
|||
|
RE: Turn Off RegEx
Set linkDesc=Description.Create
liknDesc("innertext").value=WildNight\([0-9]*\) |
|||
|
09-26-2011, 09:44 PM
(This post was last modified: 09-26-2011 09:45 PM by mv8167.)
Post: #3
|
|||
|
|||
|
RE: Turn Off RegEx
Thx Rajpes for that idea too. I will put that ion my bag of tricks to use in the future.
My issue is that I have all types of funny/different characters in my links. So, I found Replace. Public Function NormalizeString (OrgStr) Dim TempStr TempStr = Replace(OrgStr, "\", "\\") TempStr = Replace(OrgStr, "/", "\/") TempStr = Replace(TempStr, "*", "\*") TempStr = Replace(TempStr, "+", "\+") TempStr = Replace(TempStr, "(", "\(") TempStr = Replace(TempStr, ")", "\)") TempStr = Replace(TempStr, "=", "\=") TempStr = Replace(TempStr, "&", "\&") TempStr = Replace(TempStr, "@", "\@") TempStr = Replace(TempStr, "#", "\#") TempStr = Replace(TempStr, "_", "\_") TempStr = Replace(TempStr, "!", "\!") NormalizeString = Replace(TempStr, "?", "\?") End Function thx for your time Lorena |
|||
|
09-27-2011, 04:33 PM
Post: #4
|
|||
|
|||
|
RE: Turn Off RegEx
I don't think \ is needed for all special characters, it is just to nullify the reg ex wildcard characters
|
|||
|
09-27-2011, 10:20 PM
Post: #5
|
|||
|
|||
|
RE: Turn Off RegEx
Ranjes
Ok, thx for the info. But for now I will keep as i will see when I run more links that have these characters in the link name. thx ;-) Lor thx for your time Lorena |
|||
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads... | |||||
| Thread: | Author | Replies: | Views: | Last Post | |
| ReGex not working for Java Items | jimrazak | 0 | 173 |
02-23-2012 06:17 PM Last Post: jimrazak |
|
| regex works but how do i return the found string to a variable | jove1776 | 2 | 733 |
08-24-2011 06:17 PM Last Post: jove1776 |
|
| QTP 9.2 RegEx issue | ashv | 2 | 1,165 |
02-20-2011 12:48 PM Last Post: ashv |
|
| RegEx for a child objects | SBsteven | 1 | 762 |
11-17-2009 11:20 AM Last Post: v_selvam |
|
| Troubles with Regex in Browser | XeNoMoRpH | 4 | 761 |
06-18-2009 04:31 PM Last Post: XeNoMoRpH |
|
User(s) browsing this thread: 1 Guest(s)
|
|

Search
Member List
Calendar
Help



