string_a =~ /#{string_b}/
Thanks.
Wesley Chen.
On Sun, Jun 21, 2009 at 2:36 PM, ryan li <[email protected]> wrote:
> a="how"
> "howabc" =~ /how/ #will return 0
>
> my question is how to make regular expressoin /how/ to a variable, such as
> "howabc" =~ /puts a/
>
> thanks in advance!
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines:
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---