|
|
Search
You searched for the word(s):
< 1 second(s)
-
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
-
Hi,
I think I found the solution :
$reg="#(?<=\(|)$orderCritere(?=(and|or|))#i"
try
-
hi,
I have a PHP regexp to replace the numbers by string of characters
provided that the number should be preceded by :
- "(" Or nothing
And followed by :
- AND or OR or nothing .
$reg="#(?<=\(|)($nombre)(?=(and|or|))#i";
I want to avoid the use of capturing parentheses
thank you ...
-
hi
I have a string like this:
Code:
$ maCahine = (1 and 2 or 3)
I have a php regexp:
Code:
$ reg = "# (\ () (0,1) \ s * $ number \ s * (and | or | \)) # i
to replace the number by string has provided the number preceded by "(" and follow either by AND or OR or ").
then I use php preg_replace function to replace.
but I ...
-
Hi,
thank you for your response
and if I type )) ((
-
Hi,
thank you for your response
I use javascript.
actually I have this regexp
$str=~/(\((?:(?>[^()]+)|(?1))*\))/;
but in Perl
and i have this regexp $reg = '/\((?:[^()]*|(?R))*\)|[\w ]+/';
but en PHP
but I use javascript
-
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) ...
-
Hi
I want a regexp to check that every open parenthesis has a closed parenthesis.
thank you in advance
|
|
|