Loading ...
Sorry, an error occurred while loading the content.
 

Re: [Clip] Re: Find with Regex

Expand Messages
  • Hugo Paulissen
    Hi, If you remove the S-option you may see if the regex finds a match. Does this work? ^!Find
    Message 1 of 6 , Sep 6, 2009
      Hi,

      If you remove the S-option you may see if the regex finds a match.

      Does this work?

      ^!Find <(?s)meta content="ABET.*?> RITWS
      ^!Prompt [33] ^$GetHtmlTagAttr("^$GetSelection$";content)$ ^$GetHtmlTagAttr("^$GetSelection$";name)$

      Hugo



      ________________________________
      From: c.brito78 <c.brito78@...>
      To: ntb-clips@yahoogroups.com
      Sent: Sunday, September 6, 2009 11:44:07 PM
      Subject: [Clip] Re: Find with Regex

       
      Hugo, thanks.

      Do not worked, to get the entire description tag.

      The description tag are very standard:

      <META content="Abet International Business export import distance course international online International Trade Management "
      name=description>

      Prompt [33] are only a message to me, because ntp do not have the line number to be used in a clip, therefore normally I use the [33], 33 es the line number.

      There exist other way?

      Thanks again !!!!

      --- In ntb-clips@yahoogrou ps.com, Hugo Paulissen <hugopaulissen@ ...> wrote:
      >
      > >
      > > What are the error with this?:
      > >
      > > ^!Find "<META(?s)=" Abet(.*?) name=description >" RTIWS
      > > ^!Set %description% =^$GetSelection$
      > > ^!Prompt [33] ^%description%
      > >
      > > I do not get any text. Naturally, I want to pickup the description tag.
      > �
      > Hi,
      > �
      > What you are passing to the description variable seems to be the copmplete tag. Does the ^!Find really results in a selection on screen? I'm not sure if the construction of your tag is okay, but if it is you could consider using the appropriate function...
      > �
      > ^!Find "<meta.*description .*?>" RTIWS
      > ^!Info ^$GetHtmlTagAttr( "^$GetSelection$ ";description) $
      > �
      > BTW: I'm not familiar with the ^!Prompt [33] construction.
      > �
      > Regards,
      > �
      > Hugo
      >
      >
      >
      >
      > [Non-text portions of this message have been removed]
      >







      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.