|
|
Search
You searched for the word(s):
Showing page 1 of 2 (11 total posts)
< 1 second(s)
-
Thanks Susan
Your pattern worked and your description was so useful.
Now I get these as result :array(3) {
[0]=>
array(4) {
[0]=>
string(14) "({[|something1"
[1]=>
string(14) "({[|something2"
[2]=>
string(14) "({[|something3"
[3]=>
string(14) ...
-
Thanks Susan
Here is what i did :
$value = "({[|something1|]})({[|something2|]})({[|something3|]})({[|something4|]})";
$pattern = "/\(\{\[\|((?!\|\]\}\)).)+/";
preg_match_all($pattern2,$value,$result);
var_dump($result);
I get this result array(2) {
[0]=>
array(4) {
[0]=>
...
-
How can i tell with regular expressions that extract every thing that is between ({[| and |]}). It could be every thing between word, number,white spaces and even punctuations like | ] } ).
The only thing that I'll do before parsing is to remove ({[| and |]}) to prevent extracting unwanted ones.
I don't know how to tell , end when ...
-
Thanks Susan
At first ({[|something1|]})({[|something2|]})({[|something3|]})({[|something4|]}) is pattern and can continue as long as it cans.
Second something can be any thing even |]} or {[| . I use this for save something in one field(And I have to do it because overhead of joining is huge and i can't do it . I have to ...
-
Thanks Aussie Susan,
I'm sorry because i didn't said exactly.The thing that i want to is this :
I save ({[|something1|]})({[|something2|]})({[|something3|]})({[|something4|]}) in table. after fetching it from database i want to extract something1,something2,something3,something4.
-
Hi,
What is regular expression that grep "something".
Thanks in advance
-
Hi
would you offer me a regular expression that can get the content of a special tag that it has another tags in it?
for example i want to get content of body tag in an html document.
-
-
As a matter of fact my real pattern was ^teams/(.+)[^/]/([\d]+)/$ but it does not work(Of course it must not work!)
When i want to refer to first parentheses it will give me the value in addition to the /.
for example in this teams/Some-Team/12314/ , I will get Some-Team/12314/ not Some-Team.
-
I want to rewrite my url with this format :
teams/Any Possible character except slash/74927493/
that include these :
1. teams/
2. any possible character except / (slash)
3. /
4. numbers
5. /
I wrote a regular expression for this : ^teams/(.+)/(\d+)/$
This does not work would you tell me how to mention all ...
1
|
|
|