Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: whygh
  • Order by date
  1. whygh

    Cisco Secondary subnet no route

    Hi all, We have one cisco router, the setting is as below.. this router is connecting to failover checkpoint. in checkpoint, there are some rules which point to subnet 10.10.10.128/192. the router didnot recoginze subnet: 10.10.10.128/192. when I used "show arp", the subnet has no arp binding...
  2. whygh

    Record Not Found

    Hi, I am working on VB program which insert data into AccPac OE. Now I can insert OE Header,but details data always give me an error message "Order Detail": Record not Found(3)". My code is the following: OEORD0520.Init SetOEFields OEORD0520_Fields, Rs_0520 ' Set the fields...
  3. whygh

    REGEX : a line contains all five vowels

    Hi , Actually, I donot know the difference between "b)" and "c)".
  4. whygh

    REGEX : a line contains all five vowels

    you guys is so great.
  5. whygh

    REGEX : a line contains all five vowels

    Thanks your reply. indeed, \w* is no use here. actually, I am learning regular expression. I got this exercises from the book <<O'REILLY Learning Perl>>. it is the exercises after the chapter "Regular Expressions" . a. looks for a line containing all file vowels. b. five vowels have to be in...
  6. whygh

    REGEX : a line contains all five vowels

    Hello everyone, I want to look for a line containing all five vowels with regular expression. I wrote one, but it is very stupid. do you guys have any good way? while(<STDIN>){ if ($_!~/\w*a\w*/) { print "No Vowel a\n"; last; } elsif($_!~/\w*e\w*/) { print "No Vowel...
  7. whygh

    how to find a word including same two letter?

    Thanks. really appreciate it .
  8. whygh

    how to find a word including same two letter?

    Thanks. It get the right result. but it has a little bit problem,for explample: test="lolgh"; print "$1\n" if($test=~/\b(\w*(\w)\w*\2\w*)\b/); it also match.I need just match like "hello,wall,room". This is another regular experssion,it works. $var1="20-20-20"; print $var1...
  9. whygh

    how to find a word including same two letter?

    Thanks. I tried it. the result is 1) $var="hello"; $var =~ /(.)\1/; print "$var\n"; the output is "hello" 2) $var="very"; $var =~ /(.)\1/; print "$var\n"; the output is "very" 3) $var="hello"; $var =~ /(.)\1/; print "$&\n"; the output is "ll" I want to get the whole word which has two same...
  10. whygh

    how to find a word including same two letter?

    in regular expression, how to find a word including same two letter? like hello,wall, google?
  11. whygh

    find and replace in the same file

    Hi guys, I am learning how to use regular expression. Can I directly find a matching string and replace it in the same file?I mean input and outout is the same file. For example: test.txt : Hello All Sed Awk wall google after I use "s/(.){2,}\1.*//g",test.txt turn into heo A sed Awk wa gle
  12. whygh

    file pointer

    I knew the reason
  13. whygh

    file pointer

    Good Morning Everyone, I did a very simple perl program, donot laugh at me. #### open(USERFILE,"<test1.txt")||die "can't open this file! :$!"; open(USERINFO,">userinfo.txt")||die "can't open this file! :$!"; do{ $name=<USERFILE>; chomp($name)...
  14. whygh

    VB reference Perl

    Hi, I got a task to extract data from HTML to database,then display the data from database. This HTML is from webpage with SAVEAS file function , like *.HTM. In Perl deal with HTML, then in VB refernence PERl. in VB ,How can I call PERL?
  15. whygh

    readlink()

    Hello Everyone, I am very new to Perl, I am wondering if Perl surport Symlink () and readlink() in Windows XP? Thank you!
  16. whygh

    Perl install

    Good Morning, I am a new onr to this Forum and to Perl. Now I plan to learn Perl . Today, I download ActivePerl-5.8.6.811-MSWin32-x86-122208.msi and install. everything is ok. But when I click "c:/perl/perl.exe", it just give me a black-window. How should I do to start Perl Application? Thanks

Part and Inventory Search

Back
Top