- Posts: 7
- Thank you received: 0
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
- Topic Author
- Offline
- New Member
Less
More
6 years 1 month ago #164739
by tpeschel
Parsen eines Plus-Zeichens am Anfang eines Strings was created by tpeschel
Versuche +1 und -1 zu parsen.
/^[\+|\-]1$/
-1 funktioniert problemlos
+1 funktioniert nicht.
Warum?
/^[\+|\-]1$/
-1 funktioniert problemlos
+1 funktioniert nicht.
Warum?
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12908
- Thank you received: 3970
6 years 1 month ago #164747
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Parsen eines Plus-Zeichens am Anfang eines Strings
Stackoverflow liefert die Lösung:
stackoverflow.com/questions/2021053/find...n-regular-expression
Also:
/^[\\+|\-]1$/
Viel Erfolg
Joffm
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
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
6 years 1 month ago #164753
by tpeschel
Replied by tpeschel on topic Parsen eines Plus-Zeichens am Anfang eines Strings
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.
Das hatte ich schon probiert.
Aber Danke fuer die Antwort.
Denke, es handelt sich dabei um einen Bug.
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12908
- Thank you received: 3970
6 years 1 month ago #164756
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Parsen eines Plus-Zeichens am Anfang eines Strings
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
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
Attachments:
The topic has been locked.
- tpeschel
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
6 years 1 month ago #164759
by tpeschel
Replied by tpeschel on topic Parsen eines Plus-Zeichens am Anfang eines Strings
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.
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.
Attachments:
The topic has been locked.
- tpeschel
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
- Thank you received: 0
6 years 1 month ago #164761
by tpeschel
Replied by tpeschel on topic Parsen eines Plus-Zeichens am Anfang eines Strings
Hier mal das Ergebnis
Attachments:
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12908
- Thank you received: 3970
6 years 1 month ago - 6 years 1 month ago #164764
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Parsen eines Plus-Zeichens am Anfang eines Strings
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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11644
- Thank you received: 2738
6 years 1 month ago #164767
by holch
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.
Replied by holch on topic Parsen eines Plus-Zeichens am Anfang eines Strings
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.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
6 years 1 month ago #164770
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Parsen eines Plus-Zeichens am Anfang eines Strings
Die aktuellste LTS ist "Version 2.6.7-lts Build 171212"holch wrote: aber wenn es da das Problem auch noch gibt, wie Joffm ja getestet hat, dann bringt das nix.
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Attachments:
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12908
- Thank you received: 3970
6 years 1 month ago #164781
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Parsen eines Plus-Zeichens am Anfang eines Strings
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
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11644
- Thank you received: 2738
6 years 1 month ago #164782
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic Parsen eines Plus-Zeichens am Anfang eines Strings
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.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
6 years 1 month ago #164788
by jelo
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Parsen eines Plus-Zeichens am Anfang eines Strings
Ist auch so angekommen.Mein Post zielte auf holch ab. Der hat bei Dir eine LTS-Version reininterpretiert.Joffm wrote: Ich wollte eigentlich nur sagen, dass ich das Problem reproduziere.
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