Searching For Characters With Newline

4 months ago | Jeremy Johnson (Member)

I'm having trouble with a regex locating text with a newline in it.

I'm trying to locate the following text

<br /><br />
<strong>Text Here</strong>
<br />

As stored in the DB:

<br /><br />n<strong>Text</strong><br />

However nothing I do can seem to locate it that patter. I've tried several variations of

(<br /><br />[^<]*<strong>)([^<]+?)(</strong>[^<]<br />)

with no luck. I've even tried just searching for <br /><br />n and that doesn't work either.

Any ideas?

Read responses...

Responses

  1. Jeremy Johnson:

    Posted 4 months ago by Member

    I should note that where you see 'n' it should be the forward-slash n. Something is filtering it out even with the backticks.

Reply

You must log in to post.

Home | Software | Terms & Conditions | Sitemap | John Godley © 2010