|
Jun
17 |
|
comment |
Recursive function for DOM to JSON YES! Not sure why I couldn't come up with that myself, but that worked perfectly. Thanks for your help! |
|
Jun
17 |
|
accepted | Recursive function for DOM to JSON |
|
Jun
16 |
|
asked | Recursive function for DOM to JSON |
|
Jan
18 |
|
awarded | Popular Question |
|
Oct
17 |
|
awarded | Popular Question |
|
Oct
10 |
|
awarded | Teacher |
|
Oct
7 |
|
answered | tinyMCE Image Displaying Correctly, but not Updating src |
|
Oct
7 |
|
revised |
tinyMCE Image Displaying Correctly, but not Updating src added 208 characters in body |
|
Oct
7 |
|
asked | tinyMCE Image Displaying Correctly, but not Updating src |
|
Sep
20 |
|
comment |
serializeArray on keyless array input Well like you and bažmegakapa say, serialize() actually does work in conjunction with parse_str() on the PHP side. Thanks for the help. |
|
Sep
20 |
|
accepted | serializeArray on keyless array input |
|
Sep
20 |
|
asked | serializeArray on keyless array input |
|
Apr
23 |
|
accepted | KendoUI Restrict the Dimensions of the SVG and Paths |
|
Apr
23 |
|
accepted | Do all mysqli PHP functions have mysqli or do some have just mysql? |
|
Apr
23 |
|
accepted | jQuery conflict when using wp_editor() in front end |
|
Apr
23 |
|
comment |
Extract content between first "]" and last "[" using regex? Thanks to all who have answered so far. Though I haven't tested all of your solutions yet, I think I was going about this the wrong way. Instead of using regex I used strpos() and strrpos(): $content = [shortcode]You write a shortcode by using ([])[/shortcode]
$start = strpos($content, ']');
$start = $start + 1;
$end = strrpos($content, '[');
$dif = $end - $start;
$content = substr($content, $start, $dif);
echo $content;
//output: You write a shortcode by using ([])
I think that will do the trick.
|
|
Apr
23 |
|
asked | Extract content between first "]" and last "[" using regex? |
|
Apr
16 |
|
accepted | Image Upload Form is Disabling Comment Addition |
|
Apr
11 |
|
answered | Image Upload Form is Disabling Comment Addition |
|
Apr
11 |
|
asked | Image Upload Form is Disabling Comment Addition |