|
|
Browse by Tags
All Tags » perl
Showing page 1 of 2 (13 total posts)
-
Hi all,
I am having a bit of difficulty creating a regular expression pattern that accomplishes exactly what I need, and was hoping a RegEx guru might be able to help.
String #1: "THAT IS A COOL AND PRETTY FAST CAR YOU HAVE"
String #2: "THAT IS NOT A FAST BIKE YOU HAVE"
Pattern: "/(?i)(?<!NOT ...
-
I'm in perl, trying to write a regex that will remove line breaks from between <a> tags, so that a later regex can extract data from links, for example my current data looks like this:
<a href='http://www.website.com' class='blah'>This is a
website</a>
And want to turn it into:
<a ...
-
I need some help parsing this string:
STRING:
RN00166
ABThe pulmonary macrophages collected with bronchial mucus from
patients with cystic fibrosis and other chronic lung diseases were
investigated histochemically for acid phosphatase,
beta-glucuronidase and beta-glucosaminidase activity, and also for
mucopolysaccharide content. In ...
-
Hi,
I'm doing a Perl script to replace 5.2 deprecated PHP functions like split.
I'm hitting a problem when it comes to replace something like
split('/',$string)
to
preg_split('/\//',$string)
so far I have this ...
-
Write an HTML form with a textarea on it. Write a CGI to accept the input
of this form that capitalizes the first letter of every
word and prints it back to the screen.
The html form i can do and the perl script, but
the regular expression the code to capitalize the first letter of every word
example $value=~ ...
-
Hello, I need help on matching and replacing text with different matched text from same string. My goal is to be able to batch process a large set of text files that each have similar patterns and replacement criteria. Below is an example of a typical case. In the example below, BOLD text replaces strikeout text:
TITLE: Beautiful Losers - ...
-
#!/usr/bin/perl -w
$text = "Ace of Base - All That She Wants (1993)";
if($text =~ m/^([^-]+)\s*-\s*(.*)$/) {
print "$1\n";
print "$2\n";
}
-
I have a regex which works in Perl, but not in Mysql and I was wondering what might be causing the problem. Here it is: ([KR-]\.[^KR]*?[KR][\@|\#]([^KR]*?[KR][\@|\#])*\.)|([KR-]\.[^KR]*?[KR][\@|\#]([^KR]*?[KR][\@|\#])*[^KR]*?\.\-)|([KR-]\.([^KR]*?[KR][^\@|\#])*[^KR]*?[KR]+\.)|([KR-]\.([^KR]*?[KR][^\@|\#])*[^KR]*?\.\-)The error that it gives is ...
-
I'm trying to use Trend Micro's Security Dashboard to filter a lot of spam we've been getting that is in the following form:
From: various crap email addresses (different every time)
To: various internal email addresses
Subject: blank, or occasionally containing one word
Body: always blank
Attachment: A small pdf file of ...
-
I am doing parsing of html to pick up url's with url-titles from web-pages using PERL (actually I am using a Perl-script not made by me that takes url-adresses and regexps as input to produce links from the wanted site). I often get problems related to controlling matching patterns in single lines vs multiple lines. Sometimes I always ...
1
|
|
|