Jump to content

Find everything exept \n


mysterbx

Recommended Posts

Hey hey,

 

can I somehow find everything that goes after word synopsis until \n?

I tried \N but it doesnt work on my server

 

Something like this (but not with \N with some other regex formula)

 

preg_match_all("#(synopsis)(\:| \:|\: | \: |)([\N){30,999})#ise", trim(strip_tags(html_entity_decode($r2))), $description);

Link to comment
Share on other sites

Just drop the 's' modifier. This way the dot metacharater won't match newlines. You also don't really need the 'e' modifier as it is only used in preg_replace()...

 

preg_match_all("#synopsis(.*)#i", trim(strip_tags(html_entity_decode($r2))), $description);

 

Orio.

 

 

Link to comment
Share on other sites

doesnt work...

 

[RS.Com] - Ritual (2001)












Ritual (2001)
Plot
Dr. Alice Dodgson gets her medical license revoked after the death of 
one patient. She's facing the possibility of not get any job when she 
accepts to be the nurse for one young man who suffers of cephallitis 
called Wesley Claybourne. Aside from the sickness he's suffering 
Wesley believes he has been "touched" by some voodoo cult. While 
she stays in Jamaica, Dr. Dodgson will feel uncomfortable as she 
discovers that voodoo is not only a "state of mind" and could be a 
real threat to her life and Wesley's. She'll have to discover why she 
and her patient are targets of the voodoo curse.
Also Known As
Revelation (USA) (working title)
Tales from the Crypt Presents: Revelation (USA)
Tales from the Crypt Presents: Voodoo (Philippines: English title) 
IMDb

  

    

      

        

        

            

              

                  

                    

                        

                          

                          
Code:

P.S. try highliting the text, there are a lot of spaces (\s)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.