Skip to content

what job does back3 do?

edited March 2013 in Need Help
i found below at Drigg. there is no front3 there.  Is the engine wrong or something else.

front1=name="description"|name='description'|name=description
front2=content="|content='|content=
back1="
back2='
back3=\n

Comments

  • if front1 and front2 both matched a string, how gsa handle this? in common, only one of front1 and front2 matched,right?
  • edited March 2013
    front or front1,
    front2...
    Defines the content to cut in front of our 
    extract data. Separate multiple variations by |.

    back or back1, 
    back2,..
    Defines the content to cut in the back of our to
    extract data. Separate multiple variations by |.
  • thanks,  but i said there is no front3
  • front 3 isn't needed as they aren't dependend to each other.

    you may also use just but i think the first solution is the better one a Sven does it always like this ;)

    front=name="description"|name='description'|name=description|content="|content='|content=
    back="|'|\n
  • thanks.
  • do you mean  two of the below are equal?

    front1=name="description"|name='description'|name=description
    front2=content="|content='|content=
    back1="
    back2='
    back3=\n


    front=name="description"|name='description'|name=description|content="|content='|content=
    back="|'|\n

  • if so, just | is enough,  1,2,3,4 etc do not needed just front and back is enough.
  • SvenSven www.GSA-Online.de

    No, thats not the same. It's like this...

    first front* is proceed...

    front1=p1|p2|p3|.. << first check if p1 exists...if not check for p2 than p3...

    front2=q1|q2|q3 <<< not if searches for q1 starting from the position found in front1.

    back1=\n << now check for a new line and when found cut it.

    back2=" << if found, it is cutting it

    back3=,|; << will check for , and if not found check for ; and cut.


  • got you. seem ozz misunderstand too.
    back* must be after front* right?
  • SvenSven www.GSA-Online.de
    yes...thats the thing it cuts of the extracted content. 
  • Would that be like (in regex):
    (name="description"|name='description'|name=description).*?(content="|content='|content=)(.*?)".*?'.*?\n
    If not, what would happen if it doesn't find back2 or back1? Wouldn't cut anything?
  • SvenSven www.GSA-Online.de
    The back parts are all proceed...back1 than back2 than back3...
  • support regex?
  • SvenSven www.GSA-Online.de
    no
  • so if any of the back parts isn't found then it fails to cut any string, right?
  • SvenSven www.GSA-Online.de
    No, back is applied when found...only all front's have to be present
Sign In or Register to comment.