#1
|
|||
|
|||
using regex
on a normal python script i would do "import re" hoewever that is not working when i try to do it on an imported script and it fails with:
SyntaxError Error: invalid syntax File:... Line 10 import re ----- Here are the first 10 lines of the script. # $language = "python" # $interface = "1.0" # basic collect info for Uninet # Miguel Valadares import SecureCRT #import activestate.py import sys import*re how can i use regex? thanks, |
#2
|
|||
|
|||
Hi alecarra,
Thanks for the post. What version of SecureCRT are you using? What operating system and version are you using? What is the purpose of the asterisk in the line below? import*re |
#3
|
|||
|
|||
import re
hi, that's a typo when i submitted the question, here's the script
# $language = "python" # $interface = "1.0" # basic collect info for Uninet # Miguel Valadares import SecureCRT #import activestate.py import sys import*re i'm using Version 7.3.5 (x64 build 903) on Windows 7 |
#4
|
|||
|
|||
Hi alecarra,
Thanks for the information. You still have a syntax error in your script. You can't use import*re. You have to use import re. Does this help to resolve the issue? |
![]() |
Tags |
python , regex , scripting |
Thread Tools | |
Display Modes | Rate This Thread |
|
|