Regular expression question

Discussion in 'Perl' started by Glenn Kidd, Aug 18, 2003.

  1. Glenn Kidd

    Glenn Kidd Guest

    I am trying express a regular expresion used for substitution that is
    causing me problems and I was hoping that someone might be able to
    help me. The first part of the regular expression is easy,
    specifically to match "$!?[a-zA-Z][-\w\d]*", but I do not want to
    match this if it is prefixed with the regular expression
    "Foo\.bar\(\s*". Also, on the matches I want to replace with
    "Foo\.bar\( $1 \)". Any help would be greatly appreciated. Thanks in
    advance.


    Glenn
     
    Glenn Kidd, Aug 18, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andrew Munn

    Regular expression question...

    Andrew Munn, Jun 29, 2003, in forum: Perl
    Replies:
    1
    Views:
    2,138
    rakesh sharma
    Jun 30, 2003
  2. Geoff Robinson

    Regular Expression Question

    Geoff Robinson, Nov 21, 2003, in forum: Perl
    Replies:
    2
    Views:
    410
    Geoff Robinson
    Nov 22, 2003
  3. VSK
    Replies:
    2
    Views:
    2,311
  4. =?iso-8859-1?B?bW9vcJk=?=

    Matching abitrary expression in a regular expression

    =?iso-8859-1?B?bW9vcJk=?=, Dec 1, 2005, in forum: Java
    Replies:
    8
    Views:
    852
    Alan Moore
    Dec 2, 2005
  5. GIMME
    Replies:
    3
    Views:
    11,978
    vforvikash
    Dec 29, 2008
Loading...

Share This Page