What is the difference between:
$Text =~ s/<URL>/$URL/egi;
and
$Text =~ s/<URL>/$URL/gi;
What does that extra 'e' do?
http://www.experts-exchange.com/Programming/Languages/Scripting/Perl/Q_11036522.html
Zones:
PerlDate Answered: 08/18/2000 Grade: A Views: 0
I'm converting a a chunk of perl code to c# 2.0 and i'm having trouble with perl regular expression, although I understand that c# regexe's and perl 5 equivalent. Its probably an easy question for ...
http://www.experts-exchange.com/Programming/Languages/.NET/Visual_CSharp/Q_22130975.html
I have some xml data. There are 2 tags that have the same name. I need to replace it conditionally.
What I'm wanting is to only replace the data between <State></S> if it is preceeded by an <ID>...
http://www.experts-exchange.com/Programming/Languages/Scripting/Perl/Q_22579515.html
Zones:
PerlDate Answered: 05/21/2007 Grade: A Views: 0
I'm a tech writer and I need to document system properties we have in some XML-like config files for our application. There are too many files to do this manually, and I may have to do it again (an...
http://www.experts-exchange.com/Programming/Languages/Scripting/Perl/Q_23163951.html
Zones:
PerlDate Answered: 02/14/2008 Grade: A Views: 76
how should be regex for a purely summation formula excluding any multiply(*), mimus(-), divsion(/) ?
e.g.
extract formula
a = b + c + d + e
x = y + z
exclude formula
...
http://www.experts-exchange.com/Programming/Languages/Scripting/Perl/Q_23208301.html
Hi
I have a log file with entries in the following format - (all in single line (no word wrap as below))
21:29:23 05/10/2008 from=192.168.0.1:162 oid=1.3.6.1.4.1.311.1.1.3.1.2 trap=link up sp...
http://www.experts-exchange.com/Programming/Languages/Scripting/Perl/Q_23392268.html
example String:
text1<mytag>text2</mytag>text3<mytag>text4</mytag>text5
"<mytag>...</mytag>" can appear 0-n times in one line, but is always opened and closed in the same line
what I want is ...
http://www.experts-exchange.com/Programming/Languages/Regular_Expressions/Q_23773380.html
how can i detect double chars in a string with a regex.
eg.
using "abcddfghiijkkk" the regex must find "dd" abd "ii" but not "kkk".
tx,
holli
ps.
i tried /([a-z])\1/ but that is not worki...
http://www.experts-exchange.com/Programming/Languages/Scripting/Perl/Q_20636521.html
Zones:
PerlDate Answered: 06/04/2003 Grade: A Views: 0
Short description:
I need a regex that finds all strings that look like
"..." <clark.kent@mycompany.com>
, and where ... does not include any of the words "clark", "kent" or "superman...
http://www.experts-exchange.com/Programming/Languages/Scripting/Perl/Q_20666195.html
Zones:
PerlDate Answered: 07/04/2003 Grade: A Views: 91
I have the following..
#!/perl -lw
$server = "server";
$status = "Critical";
$critical = "dsmc,,,";
my @data = "dsmc UNIX P3";
foreach $line (@data)
{
($fs, $msg) = $line =~ /(.*...
http://www.experts-exchange.com/Programming/Languages/Scripting/Perl/Q_21422517.html
Zones:
PerlDate Answered: 05/13/2005 Grade: A Views: 0