Got more questions? Find advice on: ASP | SQL | XML | Windows
in Search
Welcome to RegexAdvice Sign in | Join | Help

Browse by Tags

All Tags » perl
Showing page 1 of 2 (13 total posts)
  • Negative Look-Behinds in Perl Expressions

    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 ...
    Posted to Construction Advice (Forum) by b00134n on February 4, 2011
  • Removing line breaks between <a> HTML tags

    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 ...
    Posted to Construction Advice (Forum) by Rohaq on March 23, 2010
  • Need help parsing a string

    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 ...
    Posted to Construction Advice (Forum) by Ennio on December 12, 2009
  • escaping forward slash in regex

    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 ...
    Posted to Construction Advice (Forum) by gilemon on December 9, 2009
  • Capitalize the first letter of every word in a paragraph.

    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=~ ...
    Posted to Construction Advice (Forum) by Mark Schmidt on August 26, 2009
  • Replacing text with matched text from same string

    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 - ...
    Posted to Construction Advice (Forum) by dhl on August 15, 2008
  • Re: Using Itunify to Edit Tracks. Really NEED HELP!

    #!/usr/bin/perl -w $text = "Ace of Base - All That She Wants (1993)"; if($text =~ m/^([^-]+)\s*-\s*(.*)$/) {   print "$1\n";   print "$2\n"; }
    Posted to Construction Advice (Forum) by prometheuzz on April 27, 2008
  • Perl v. MySQL

    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 ...
    Posted to Platform Differences (Forum) by ternto333 on February 22, 2008
  • Matching email with blank subject/body, and attached PDF

    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 ...
    Posted to Construction Advice (Forum) by brian0918 on July 26, 2007
  • Various ways to control single-line multi-line for PERL html-parsing?

    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 ...
    Posted to Construction Advice (Forum) by borgeh on July 11, 2007
1 2 Next >