Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-27-2015, 11:56 AM
alecarra alecarra is offline
Registered User
 
Join Date: Oct 2015
Posts: 3
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,
Reply With Quote
 

Tags
python , regex , scripting


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 03:09 AM.