Regoular Expression
|
Nov. 24, 2008, 11:12 AM
Post: #1
|
|||
|
|||
Regoular Expression
Hi,
I'd like to know what type of Regoular Expression are used by Bfilter. It's are similar to Javascript regex or Perl ? Thank in advance vega83 |
|||
Nov. 24, 2008, 11:55 AM
Post: #2
|
|||
|
|||
RE: Regoular Expression
The regex engine comes from the Boost project, and it tries to be compatible with JavaScript regular expressions.
|
|||
Nov. 26, 2008, 01:49 PM
Post: #3
|
|||
|
|||
RE: Regoular Expression
Thanks for your reply.
I have also another question. I would like to intercept this code Code: <script language="JavaScript" type="text/javascript"> but I'm not able to find it with this regex: Code: /<script language="JavaScript" type="text\/javascript">(\n)+(\t)+OAS_RICH\('Middle1'\);(\t)+(\n)+<\/script>/ Can someone help me please? Thanks in advance |
|||
Nov. 26, 2008, 08:11 PM
Post: #4
|
|||
|
|||
RE: Regoular Expression
I'd suggest replacing explicit linefeed (\n) and tab (\t) with generic white space (\s) condition.
Code: /<script language="JavaScript" type="text\/javascript">\s+OAS_RICH\('Middle1'\);\s+<\/script>/ I don't use BFilter, hopefully you'll figure out how to tell it what you want. |
|||
Nov. 26, 2008, 10:44 PM
Post: #5
|
|||
|
|||
RE: Regoular Expression
Fantastic, I tried with your regoular expression and it match the code.
Thank you very much |
|||
« Next Oldest | Next Newest »
|