English
Forum

Translate$() NOT case-sensitiv - goes the?

 

Stephan
Sonneborn
Hello together,

usually is Yes Translate$() case -sensitive.

Can it too manage, that Translate$() sowohl
CompileMarkSeparation
TRANSLATE$("TestText", "Text", "Worte")
>
alsauch
CompileMarkSeparation
TRANSLATE$("TestTEXT", "Text", "Worte")
>
treats and as Result
CompileMarkSeparation
"TestWorte"
>
supply?

I mean, without that one first of all everything in GROSSBUCHSTABEN umwandelt, then The position determined, on the the To tauschende Text begins, The length the To tauschenden Text save, whom Text then swaps and subsequently whom area to and to the getauschten Text by the Orignaltext austauscht.

Also could the searched Text in the example supra too "Testtext" lauten and ought to to the replacement still "TestWorte" supplying
 
Schöne Grüße aus Wittgenstein
von Stephan

Programmierumgebung:| XProfan X4 | WIN10 | AMD FX6100 3,3 GHz
04/06/12  
 




Jörg
Sellmeyer
have You you Schonmal Match$() respected? with @Set("RegEx", 1) can also Translate with regulären squeeze out bypass.
on the simplest does it so:
CompileMarkSeparation
@Set("RegEx", 1)
Print Match$("[Tt][Ee][Ss][Tt]","Ein kleiner Test")
Print Match$("[Tt][Ee][Ss][Tt]","Ein kleiner test")
Print Match$("[Tt][Ee][Ss][Tt]","Ein kleiner TEst")
Print Match$("[Tt][Ee][Ss][Tt]","Ein kleiner tesT")
WaitInpu

with Translate and switch (?i) for big-/Kleinschreibung:
CompileMarkSeparation
@Set("RegEx", 1)
Var set$ = "Ein small tEst"
Print Translate$(set$,"[Tt][Ee][Ss][Tt]","Test")
Print Translate$(set$,"(?i)test","Test")
WaitInput
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
04/06/12  
 




Stephan
Sonneborn
Hello Jörg,

sincere said, MATCH$() knew I To yesterday none...

What exactly means The Direktive (?i) ?

in the Help have I "(?i)" not found...
 
Schöne Grüße aus Wittgenstein
von Stephan

Programmierumgebung:| XProfan X4 | WIN10 | AMD FX6100 3,3 GHz
04/07/12  
 




Jörg
Sellmeyer
under 28.11 - Reguläre expressions in XProfan find You a right good Statement moreover. it rewards itself too, The weiterführenden Erläuterungen under [...]  To reading.

with (?i) becomes Case-Sensivity one-/off
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
04/07/12  
 




Stephan
Sonneborn
Hello Jörg,

Yes, now Have ichs too found.

I had only in the Help Match$() nachgesehen. there missing m.E. one Info on (?i).
 
Schöne Grüße aus Wittgenstein
von Stephan

Programmierumgebung:| XProfan X4 | WIN10 | AMD FX6100 3,3 GHz
04/09/12  
 




Jörg
Sellmeyer
it missing especially one Verweis on The Erklärungsseite to the regulären squeeze out. there standing the then indeed with the Schaltern.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
04/09/12  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

7.227 Views

Untitledvor 0 min.
H.Brill10/03/22
Michael Klumb04/18/16
RudiB.02/04/16
mein06/02/13
More...

Themeninformationen

this Topic has 2 subscriber:

Jörg Sellmeyer (3x)
Stephan Sonneborn (3x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie