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

positive lookbehind in JavaScript

Last post 03-04-2010, 1:33 PM by mash. 6 replies.
Sort Posts: Previous Next
  •  01-21-2010, 3:58 AM 58678

    positive lookbehind in JavaScript

    Hi,

    I tried to do it this way:

    Code:

    var regex = new RegExp ("(?<= \ () [1-9 ](?=( and | or)) "," g ");

    but I have an error:

     invalid quantify ?<=()[ 1-9 ](?=( and | or))

     thank you for helping me


    there is nothing to say but there is plenty to do
  •  01-21-2010, 11:33 AM 58692 in reply to 58678

    Re: positive lookbehind in JavaScript

    The JavaScript regex engine does not support look-behinds

    Michael

    "In theory, theory and practice are the same. In practice, they are not."
    Albert Einstein
  •  02-20-2010, 5:55 AM 59895 in reply to 58692

    Re: positive lookbehind in JavaScript

    JavaScript is a language. it is used to make small scripts or designing. it does not provide any facility about graphical user interfaces to make GUI pages. 
  •  02-22-2010, 10:34 AM 59947 in reply to 59895

    Re: positive lookbehind in JavaScript

    buckman:
    JavaScript is a language. it is used to make small scripts or designing. it does not provide any facility about graphical user interfaces to make GUI pages. 

    I don't know how that statement is relevant to the question asked by the original poster or this forum.


    Michael

    "In theory, theory and practice are the same. In practice, they are not."
    Albert Einstein
  •  02-23-2010, 5:50 PM 60016 in reply to 58678

    Re: positive lookbehind in JavaScript

    Hi people thank you for your replies about the code. This is so important that you have suggested this. I will also try it out because when I used this code before I also faced this type of problem. So I think now it is going to be solved.
  •  03-04-2010, 11:49 AM 60348 in reply to 58678

    Re: positive lookbehind in JavaScript

    Hello,

    I am trying to use regular expressions to scan a subdirectory structure and
    run sfv and parity file checks on the directory. However, I am having an issue
    with my current code using regular expressions to find par2 files. Multiple
    par2 files are created for an archive in the following format:

    test.par2
    test.vol000+01.par2
    test.vol000+03.par2
    test.vol000+07.par2
    and so on...

    I only want to select the files name "test.par2" using regular expressions.
  •  03-04-2010, 1:33 PM 60349 in reply to 60348

    Re: positive lookbehind in JavaScript

    Please do not hijack someone else's post.  Start a new Topic. Also it would be more appropriate to post this in the Regex Construction forum following the guidelines posted there.

    Michael

    "In theory, theory and practice are the same. In practice, they are not."
    Albert Einstein
View as RSS news feed in XML