|
|
Browse by Tags
All Tags » tags » php
-
Hi, im trying to mask all html "a" tags in php using preg_replace_callback what contains a valid email address in href attribute, "mailto:" would be optional. a-tags can have any possible syntax, so im trying to match all [ \t\r\n\v] and chars between <a........href and after @dd.ee".........>, i assume i have ...
-
Hi there,
I like to have a named capture regular expression who captures the following from a html string:
some_tag, could by p div span, (?P<container_start>.....
the total class attribute cont_p_img_left, right or center and not other classes, (?P<container_class>.....
the last part of the class attribute, ...
-
I am working on making a bbcode system with php using preg_replace(), and I am making it so that other tags will not work inside of a code block. This is the code I am currently using, it almost works:
/(?!\[code\])(.*)(\[b\])(.+)(\[\/b\])(.*)(?<!\[\/code\])/Usi
what I want it to do is if [*code] and [*/code] are around the text inside, ...
-
hi all,
i need some regex to get over this situation.
i couldnt figure it out myself so if you can help me, that would be great.
my problem is that i need to extract some tags. for example;
bla bla bla {{ tag starts here {{ internal tag }} and it continues.. }} like this..
I need to extract :
{{ tag starts here {{ internal tag }} and it ...
-
Hi,
I'm using a PHP script to convert certain strings (for example "ski holiday") to links. The problem is that the strings are also converted if they appear in subheaders (<H2>, example). I only want them converted if they appear in normal text (<P>).
The script I use (SH Autolink for WordPress) contain the regular ...
|
|
|