Jump to content
UBot Underground

[Free] String Management Plugin


Recommended Posts

Thanks a lot for this.

 

Any chance you can add "contains" which returns true/false if a string contains a string.

This is something that's harder than it should be in Ubot.

Why wouldn't you use native UBot function called "contains"?

Link to post
Share on other sites

Thanks a lot for this.

 

Any chance you can add "contains" which returns true/false if a string contains a string.

This is something that's harder than it should be in Ubot.

 

Ubot has that built in

Link to post
Share on other sites
  • 5 weeks later...

Hi :)

Thanks, really nice stuff!

 

Really need the Truncate possibility.

But the Plugin always set three dots "..." at the end of the truncated text/numbers.

 

Is there a Chance to disable the dots?

 

And another question: i would love to delete / truncate the two last characters from a scraped number.

Like this: "512.74 " truncate to "512". Does anyone knows a solution for that?

 

Thank you so much!

 

Ponda199

Link to post
Share on other sites

Hi :)

Thanks, really nice stuff!

 

Really need the Truncate possibility.

But the Plugin always set three dots "..." at the end of the truncated text/numbers.

 

Is there a Chance to disable the dots?

 

And another question: i would love to delete / truncate the two last characters from a scraped number.

Like this: "512.74 " truncate to "512". Does anyone knows a solution for that?

 

Thank you so much!

 

Ponda199

 

If you have Pash's Advanced Ubot plugin you can use the $math option (Floor) for that, but everything is possible with regex. For this specific problem I would use $replace regex (so it will work no matter how many digits you have after the dot), try:

 

set(#new_value$replace regular expression("original_value""(?<=\\d*)\\.\\d*"$nothing), "Global")

 

This will remove everything after (and including) the dot. If it's a whole number it will leave it as is, so this could be the perfect solution for you.

  • Like 1
Link to post
Share on other sites

Hi :-)

 

Yeah- thank you very very much! This really helps me out a lot!

 

I really have to spend some time with regex code in the future. ;-)

 

 

What if i have multiple "." in the number - like in IPs "122.90.21.178" and would like to delete the stuff after the 3rd "."

like this : "122.90.21.178" is going to "122.90.21" ?

 

I will try a little bit with your given code. :)

Link to post
Share on other sites

Hi :-)

 

Yeah- thank you very very much! This really helps me out a lot!

 

I really have to spend some time with regex code in the future. ;-)

 

 

What if i have multiple "." in the number - like in IPs "122.90.21.178" and would like to delete the stuff after the 3rd "."

like this : "122.90.21.178" is going to "122.90.21" ?

 

I will try a little bit with your given code. :)

 

No problem. Add a $ sign at the very end of the same regex. It will work for both your problems.

  • Like 1
Link to post
Share on other sites
  • 1 year later...
  • 1 month later...
  • 1 month later...
  • 2 weeks later...
  • 6 months later...

I cannot download it, its giving me an error of AWS.

<Error>
<Code>AllAccessDisabled</Code>
<Message>All access to this object has been disabled</Message>
<RequestId>8A1FC033B8D477B7</RequestId>
<HostId>
mBJz3DsIiaLQHgQGAZnkuCQvshyUiNKjilcp+UI0nEcCRgv5bbBAqp38XrcYUQUVOqEBGTfR404=
</HostId>
</Error>
Link to post
Share on other sites

 

I cannot download it, its giving me an error of AWS.

<Error>
<Code>AllAccessDisabled</Code>
<Message>All access to this object has been disabled</Message>
<RequestId>8A1FC033B8D477B7</RequestId>
<HostId>
mBJz3DsIiaLQHgQGAZnkuCQvshyUiNKjilcp+UI0nEcCRgv5bbBAqp38XrcYUQUVOqEBGTfR404=
</HostId>
</Error>

 

Nor can I, both string management and file management plugins are unavailable, with the error Rodvan posted. I'm trying to use this ubot to learn but can't. Any help or advice?

Link to post
Share on other sites
  • 3 years later...
  • 7 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

Loading...
×
×
  • Create New...