Hi, where I work we are collecting info on our computers, and one thing we require is a listing of the latest IP addresses assigned to the users’ machines. They are mostly set to DHCP, so the idea I had was to check each machine every day with a script that would find their IP addresses, and...
I have a perl file that contains some regular expressions, and I want to make it into a CGI script. Can something like this run on the web so that when the user points to it with their browser it will execute the perl file and deliver the results of the search and replace? Every time I try it...
suppose i have the string: "iX... iY... iX... iY"
and i want to replace all occurrences of iX with "i1" and all occurrences of iY with "i2", yielding "i1... i2... i1... i2"
how can i do this with a single regular expression that will also replace the string
"iY... iX... iY... iX" with the string...
i am trying to use a regular expression to match all characters that are NOT enclosed within parentheses. I have tried the following, among others, on the file:
[^(\(.*\))]
[^\(+[A-Z]+.+[a-z]\)]
so i am trying to use the "not" operator [^ ] to select all characters that are not within the ( )...
Greetings, this is a newbie question: I need to know how to tell perl to use a regular expression on a text file and print the results. If I have a file "talk.txt" and I want to match all the strings, "abc" in that file, how do I tell perl to use the regexp on talk.txt? How...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.