Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Regular Expressions in Dreamweaver or any freebie text editor Re: Regular Expressions in Dreamweaver or any freebie text editor

#78775
jamygolden
Moderator

I’m busy with regular expressions atm too.

Have a look at this site, it’s really helpful.

/(?<=test)(.+?)(?=test)/g

That gets everything between test and test – Provided it’s on the same line. I’m busy working on a solution to that atm.

Also, something quite annoying.
(?<=test) – That is a lookbehind
(?=test) – That is a lookahead

Javascript doesn’t support the lookbehind (php does)
So that’s pretty annoying. I’m trying to find a proper work around to that too.