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

Search

You searched for the word(s):
< 1 second(s)
  • positive lookbehind in JavaScript

    Hi, I tried to do it this way: Code: var regex = new RegExp (&quot;(?&lt;= \ () [1-9 ](?=( and | or)) &quot;,&quot; g &quot;); but I have an error: &nbsp;invalid quantify ?&lt;=()[ 1-9 ](?=( and | or)) &nbsp;thank you for helping me
    Posted to Discussion (Forum) by devMan on January 21, 2010
  • Re: regexp to replace the number by the characters

    Hi, I think I found the solution : &nbsp;$reg=&quot;#(?&lt;=\(|)$orderCritere(?=(and|or|))#i&quot; try
    Posted to Construction Advice (Forum) by devMan on January 12, 2010
  • avoid capturing parentheses

    hi, I have a PHP regexp to replace the numbers by string of characters provided that the number should be preceded by : &nbsp;&nbsp;- &quot;(&quot;&nbsp; Or nothing And followed by : &nbsp;&nbsp;- AND or OR or nothing . $reg=&quot;#(?&lt;=\(|)($nombre)(?=(and|or|))#i&quot;; I want to avoid the use of capturing parentheses &nbsp;thank you ...
    Posted to Discussion (Forum) by devMan on January 5, 2010
  • regexp to replace the number by the characters

    hi I have a string like this: Code: $ maCahine = (1 and 2 or 3) I have a php regexp: Code: &nbsp;$ reg = &quot;# (\ () (0,1) \ s * $ number \ s * (and | or | \)) # i to replace the number by string has provided the number preceded by &quot;(&quot; and follow either by AND or OR or &quot;). then I use php preg_replace function to replace. but I ...
    Posted to Construction Advice (Forum) by devMan on December 24, 2009
  • Re: check the brackets by regexp

    Hi, thank you for your response and if I type&nbsp; )) ((
    Posted to Construction Advice (Forum) by devMan on December 24, 2009
  • Re: check the brackets by regexp

    Hi, thank you for your response I use javascript. actually I have this regexp &nbsp;$str=~/(\((?:(?&gt;[^()]+)|(?1))*\))/; but in Perl and i have this regexp&nbsp;$reg = &#39;/\((?:[^()]*|(?R))*\)|[\w ]+/&#39;; &nbsp; but en PHP but I use javascript
    Posted to Construction Advice (Forum) by devMan on December 18, 2009
  • Re: check the brackets by regexp

    Hi, thank you for your response actually I have a text box where the user can enter something like this: (val1 and val2) or val3 or (and val1 (val2 val or 3) val4) or other form.... I want a regexp check for each open parenthesis I have a closed parenthesis by cons, your regexp \(((?!\).)*\) it works not for every form : eg (1 and (2 or 3) ...
    Posted to Construction Advice (Forum) by devMan on December 17, 2009
  • check the brackets by regexp

    Hi I want a regexp to check that every open parenthesis has a closed parenthesis. thank you in advance
    Posted to Construction Advice (Forum) by devMan on December 16, 2009