Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using REGEXP activeX
Message
From
27/03/2017 20:21:48
Antonio Lopes (Online)
BookMARC
Coimbra, Portugal
 
 
To
27/03/2017 19:52:04
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Miscellaneous
Thread ID:
01649405
Message ID:
01649417
Views:
45
>
>notes:curious Regexp object
>1.code works with a specifc regEXP.pattern (for first not for second).
>2.for cursor regEXP.execute must receive a string instead a field as url
> it return matches.count=0 for a field url and matches.count=1 for a strind (xURL=url)

Change the pattern to "(\/watch\?v\=|\/\w+\?v=|\/|v=)([a-zA-Z0-9\-]+)(\s*$|\?|\&)" to get it working with a character (padded) field.
----------------------------------
António Tavares Lopes
Previous
Reply
Map
View

Click here to load this message in the networking platform