Jump to content

string operation?


poppy

Recommended Posts

+ is directly supported so `chs("stringA") + chs("stringB")` will give you ABBBB

- is tricky, since there is many interpretations of that

like ABB - BB = A, easy, but what about BBABB - BB? is it A? BBA? ABB?

what you can do is

`strreplace(chs("stringA"), chs("stringB"), "")`

it will find stringB in stringA and replace with nothing (so the case where BBABB - BB = A)

if you want something more flexible use python

there is plenty of resources on python string operations and regular expressions on the net

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...