Jump to content

mhykhh

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

About mhykhh

  • Birthday 07/26/1984

Profile Information

  • Gender
    Not Telling

mhykhh's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hey guys, I'd given up on experimenting with different patterns. The goal here is to parse raw wikipedia text to be able to get the different sections and their respective text. A sample raw output from wikipedia: ==Early life== Gates was born in [[seattle]], [[Washington]], to [[William H. Gates, Sr.]] and [[Mary Maxwell Gates]]. His family was wealthy; his father was a prominent lawyer, his mother served on the board of directors for [[First Interstate BancSystem]] and the [[united Way of America|United Way]], and her father, J. W. Maxwell, was a [[National bank#United States|national bank]] president. Gates has one older sister, Kristi (Kristianne), and one younger sister, Libby. He was the fourth of his name in his family, but was known as William Gates III or "Trey" because his father had dropped his own "III" suffix.{{harv|Manes|1994|p=15}} Early on in his life, Gates' parents had a law career in mind for him.{{harv|Manes|1994|p=47}} And the most effective pattern I've been using is: /[=]{2,6}([^==]+)[=]{2,6}([^==]+)/is One problem is that even single "=" is being parsed and is eventually cut off (see the last part of the raw text, {{harv|Manes|1994|p=47}}). The other problem is that headings can have two or more "=" so the [^==] in the pattern could cause problems later on. TIA
  2. Hi, I'm a beginner when it comes to regex and I'm stuck with a problem involving the character class. Say I have the following pattern: /<my-customtag id=([0-9]+)>([^<\/my\-customtag>]+)<\/my-customtag>/ The pattern above doesn't product any matches even if the haystack is something like - <my-customtag id=1>Some Text</my-customtag> But when I trim the length of the characters inside the character class like: /<my-customtag id=([0-9]+)>([^<\/my]+)<\/my-customtag>/ It works fine... Any ideas? Thanks
  3. It\'s ok now but when insert this LoadModule php4_module c:/php/sapi/php4apache.dll AddType application/x-httpd-php .php .php3 .phtml AddType application/x-httpd-php-source .phps at the bottom of the conf of apache, somethings totally wrong and i cant start the server... If I remember it correctly, I think it cant find the file php4apache.dll
  4. I\'ve been following a tutorial and it says that to make sure apache is correctly installed and working, fire up your browser and go to \"http://localhost/\" and there must be a message like apache was successfully installed but all I get is \"Page cannot be displayed\". What should I do with this? Please help. Thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.