Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #12868
| Message-ID | <14213414.j1o6taOARH@PointedEars.de> (permalink) |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Organization | PointedEars Software (PES) |
| Date | 2014-02-19 16:30 +0100 |
| Subject | Re: Help with regex |
| Newsgroups | comp.lang.php |
| References | <2e5bee72-53e6-4a96-b506-300446d58b1b@googlegroups.com> <48029026.O8LEcLiMsM@PointedEars.de> <b37d9e6a-1221-4b80-b016-17eb380f71b0@googlegroups.com> |
knal wrote: ^^^^ Please fix. > Hi PointedEars, Hello. This is a one-to-many (or many-to-many) communications medium. Therefore, addressing only one person is impolite towards the other potential readers. > 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. But even such “basic HTML” is not a regular language because many element types can be part of their own content. > Regarding the RTFM: I've read on the regex, and also understood it's not > intended for what I want to use it for. That depends on *how* you use it. Because HTML is not a regular language, unless you would accept only a subset of HTML that is regular, a single application of a single regular expression will not suffice (even if that expression is not a regular one in the computer-science sense of the term). > 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. In general, you are looking for a markup parser (which is an implementation of a push-down automaton, a PDA). Either write one yourself (you *can* use regular expressions there) or use those that are available (Christoph has pointed out a reasonable one). > [Top post] <http://www.netmeister.org/news/learn2quote.html> -- PointedEarsa
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Help with regex knal <knalpiap@gmail.com> - 2014-02-19 01:18 -0800
Re: Help with regex Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-02-19 15:20 +0100
Re: Help with regex knal <knalpiap@gmail.com> - 2014-02-19 06:45 -0800
Re: Help with regex Christoph Michael Becker <cmbecker69@arcor.de> - 2014-02-19 16:11 +0100
Re: Help with regex knal <knalpiap@gmail.com> - 2014-02-19 07:17 -0800
Re: Help with regex Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-02-19 16:37 +0100
Re: Help with regex Christoph Michael Becker <cmbecker69@arcor.de> - 2014-02-19 21:32 +0100
Re: Help with regex Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-02-19 22:28 +0100
Re: Help with regex Christoph Michael Becker <cmbecker69@arcor.de> - 2014-02-20 22:43 +0100
Re: Help with regex Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-02-21 02:25 +0100
Re: Help with regex Christoph Michael Becker <cmbecker69@arcor.de> - 2014-02-23 17:57 +0100
Re: Help with regex Jerry Stuckle <jstucklex@attglobal.net> - 2014-02-19 13:48 -0500
Re: Help with regex "Peter H. Coffin" <hellsop@ninehells.com> - 2014-02-20 00:29 -0600
Re: Help with regex Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-02-19 16:30 +0100
Re: Help with regex The Natural Philosopher <tnp@invalid.invalid> - 2014-02-19 17:42 +0000
Re: Help with regex Scott Johnson <noonehome@chalupasworld.com> - 2014-02-19 15:38 -0800
csiph-web