Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Check Alphanumeric's from webtable
#1
Solved: 11 Years, 4 Months, 3 Weeks ago
Hi all,

Good Morning to all.

I am having one doubt, For checking a condition from web table cell contains alphanumeric data. In that cell some part is constant and remaining part is changing. How to check this type of condition.

Cell values: To : Islamabad (ISB)
To : Karachi (KHI)
To : Peshawar (PEW)

Here, i done below ways to check the condition,but it is not working.
Code:
If var = "To : " & "[A-Za-z()]" Then
End If.
and
If var = "To : " + "[A-Za-z()]" Then
End If.

Regards,
Ranjit B
Reply
#2
Solved: 11 Years, 4 Months, 3 Weeks ago
Please check the below code
Code:
myvalue = "Karachi (KHI1-)"

Set regexp = New RegExp
regexp.Pattern =  "[^\w\(\)\s]"
regexp.Global = True
regexp.IgnoreCase = True
set Matches = regexp.Execute(myvalue)
msgbox Matches.Count
If Matches.Count = 0 Then
    msgbox "input contains only alphanumerics and spl chars ()"
else
    For Each Match in Matches
        msgbox Match
    Next
End If
Thanks,
SUpputuri
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Link in a webtable in a webtable Soulwalker 1 2,862 07-19-2017, 01:44 PM
Last Post: Ankur
  How to validate a format of an alphanumeric string PrateepKaraval 2 6,040 11-08-2014, 10:26 AM
Last Post: vinod123
  Webtable actions are not getting recorded, but ObjectSpy is able to identify webtable sahilarora2000 2 3,933 06-13-2014, 04:27 PM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)