Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Parsen eines Plus-Zeichens am Anfang eines Strings

  • tpeschel
  • tpeschel's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 1 month ago #164739 by tpeschel
Versuche +1 und -1 zu parsen.

/^[\+|\-]1$/

-1 funktioniert problemlos
+1 funktioniert nicht.

Warum?
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 1 month ago #164747 by Joffm
Stackoverflow liefert die Lösung:
stackoverflow.com/questions/2021053/find...n-regular-expression

Also:

/^[\\+|\-]1$/

Viel Erfolg
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • tpeschel
  • tpeschel's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 1 month ago #164753 by tpeschel
Es wäre schön, wenn es so einfach wäre.
Das hatte ich schon probiert.
Aber Danke fuer die Antwort.
Denke, es handelt sich dabei um einen Bug.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 1 month ago #164756 by Joffm
Getestet in LS Version 3.4.2+180223





Also, ein bug ist es nicht; dann ist es etwas anderes bei Dir.
Und dann brauchen wir mehr Infos.
Welche Version, evtl. *.lss, usw.

Wie hier gesagt:
www.limesurvey.org/forum/installation-a-...efore-you-write-here

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • tpeschel
  • tpeschel's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 1 month ago #164759 by tpeschel
Version 2.05+ Build 150520

Das Verrueckte ist

/^[+-]a$/

akzeptiert +a und -a

/^[+-]1$/ aber nicht +1.

Das muss ein Bug sein.

/^[+-][1a]$/ sollte +a -a +1 und -1 akzeptieren, akzeptiert +a,-a und -1.
The topic has been locked.
  • tpeschel
  • tpeschel's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
6 years 1 month ago #164761 by tpeschel
Hier mal das Ergebnis
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 1 month ago - 6 years 1 month ago #164764 by Joffm
Ja, konnte ich in 2.06 reproduzieren.
Was Dir natürlich nicht viel nützt, da es - wie in letzter Zeit oft gesagt - für diese alten Versionen inkl. 2.73 keine Bugfixes mehr geben wird.

Wenn Du also nicht updaten kannst oder willst, kann ich Dir nur empfehlen, die Fragestellung zu ändern.
Wenn ich nur "-1", "+1", "+a", "-a" eingeben können soll (also diskrete Werte), bietet es sich doch an, dies über Buttons zu regeln.

Bis dann
Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
Last edit: 6 years 1 month ago by Joffm.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 1 month ago #164767 by holch

Version 2.05+ Build 150520


Gut, das Ding ist dann jetzt auch bald 3 Jahre alt. Ich hätte ja empfohlen zumindest auf 2.06 LTS letzte Version abzudaten, aber wenn es da das Problem auch noch gibt, wie Joffm ja getestet hat, dann bringt das nix.

Aber: Ich denke es ist sowieso an der Zeit ein Update zu machen. Es gab vor einiger Zeit ein ernstes Sicherheitsproblem bei Limesurvey, keine Ahnung bis zu welcher Version es war. Ich würde aber so eine alte Software nicht frei im Netz erreichbar machen.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
More
6 years 1 month ago #164770 by jelo

holch wrote: aber wenn es da das Problem auch noch gibt, wie Joffm ja getestet hat, dann bringt das nix.

Die aktuellste LTS ist "Version 2.6.7-lts Build 171212"


The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 1 month ago #164781 by Joffm
Ich wollte eigentlich nur sagen, dass ich das Problem reproduziere.

Ich habe aber auch nicht die letzte 2.06 Version, sondern Version 2.06+ Build 160129, da ich keinen Zugriff auf die "lts" habe.

Aber dann ist es ja gut; dann kann tpeschel ja nur darauf updaten.

Joffm

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
6 years 1 month ago #164782 by holch
Die LTS gibt es entweder per Comfort Update und etwas umständlicher auch über Github.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
More
6 years 1 month ago #164788 by jelo

Joffm wrote: Ich wollte eigentlich nur sagen, dass ich das Problem reproduziere.

Ist auch so angekommen.Mein Post zielte auf holch ab. Der hat bei Dir eine LTS-Version reininterpretiert.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
Moderators: Joffm

Lime-years ahead

Online-surveys for every purse and purpose