Advertisement

1 - 10 of 22 containing alltags:("PERL, Regex") (0 seconds)
What is the difference between: $Text =~ s/<URL>/$URL/egi; and $Text =~ s/<URL>/$URL/gi; What does that extra 'e' do?
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 ...
Zones: MS Visual C#, PerlDate Answered: 01/23/2007 Grade: A Views: 0
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>...
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...
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        ...
Zones: Perl, Linux, ProgrammingDate Answered: 09/05/2008 Grade: A Views: 0
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...
Zones: Perl, Unix Systems ProgrammingDate Answered: 05/11/2008 Grade: A Views: 13
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 ...
Zones: Regular Expressions, PerlDate Answered: 10/03/2008 Grade: A Views: 0
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...
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...
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 =~ /(.*...
Zones: PerlDate Answered: 05/13/2005 Grade: A Views: 0