FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Help with regex
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Help with regex [message #184952 is a reply to message #184951] Wed, 19 February 2014 14:45 Go to previous messageGo to previous message
knal is currently offline  knal
Messages: 3
Registered: February 2014
Karma:
Junior Member
Hi PointedEars,

With regular HTML i meant basic HTML, submitted with basic WYSIWYG-features like links, basic text styles (b, i, u, etc.), images, some divs, etc.
I understand this wasn't clear, sorry for that.

Regarding the RTFM: I've read on the regex, and also understood it's not intended for what I want to use it for.
I've come here for help here because I was unable to find a similar situation which could aid me to my solution nor was i able to find any other method I could use.

Kind regards,
John Knal Peters,

Op woensdag 19 februari 2014 15:20:00 UTC+1 schreef Thomas 'PointedEars' Lahn:
> knal wrote:
>
> ^^^^
>
> Please use your real name here.
>
>
>
>> I'd like to parse users' textfield HTML input with a regex. The user
>
>> writes regular html,
>
> ^^^^^^^^^^^^
>
> What do you mean by that?
>
>
>
>> including links with a hash
>
>> (mysite.com/somedocument/file.html#thehash) I want to extract all unique
>
>> <a hrefs> that match #thehash but wouldn't know how to build the regex.
>
>> (so i can sum them up in another location)
>
>
>
> RTFM: <http://php.net/pcre>
>
>
>
>
>
> PointedEars
>
> --
>
> realism: HTML 4.01 Strict
>
> evangelism: XHTML 1.0 Strict
>
> madness: XHTML 1.1 as application/xhtml+xml
>
> -- Bjoern Hoehrmann
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Career Opportunities in Singapore (PHP Tech Lead)
Next Topic: PHP script to get name of file which houses the script?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 06:26:18 GMT 2024

Total time taken to generate the page: 0.04107 seconds