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 regex
  • Need some help with regula expression

    I need a regular expression to do the following.  I have a variable called $base, that contain an url (http://www.mysite.com/)  I need a regular expression that will check in the list of link if the list contain $base + index or default ( it need to get all type of document example (inde.html, default.html, index.asp, index.aspx, ...
    Posted to Construction Advice (Forum) by Ennio on October 27, 2008
  • Perl-Regex : capture more than one alternative from an input word

    Hi, In perl I'm using KinoSearch library to create an index for some c++ codebase. In the code there are class names like CRefSomething (smart pointer to Something), CTypeSomething (Something's meta-class) and so on (a few others). What I want to achieve is the following: when the indexer reaches CRefSomething I want to capture both ...
    Posted to Construction Advice (Forum) by Tymax on October 19, 2008
  • Variable number of captures

    Hi, here's my little problem: let's say i have the following string:  "hi:jad1213aka678lpos67 hello:h123kkew555le78o" Ideally I would like to get an array of all numbers following "hello:", so (123,555,78), but the problem is that I do not know exactly how many numbers follow "hello:". I am trying to do ...
    Posted to Construction Advice (Forum) by vinaur on October 13, 2007
  • 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
  • Parsing XML-like string (using perl)

    Hi, My enviroment: Perl  v5.8.1 (Activestate) I need some fresh eyes on this problem i'm having with a custom file format i need to parse:  <level1><article><optional_tag>Some article text, which is one very long line<another_optional_tag>   I would like to extract the article text. Currently ...
    Posted to Construction Advice (Forum) by that.guy.lee on July 9, 2007