Forum Academy Marketplace Showcase Pricing Features

Find & Replace - multiple instances in one expression

It would be super handy to be able to build multiple Find & Replace instances all in one expression (similar to the ‘Add field’ in making changes to database) - example:

2020-04-10 12_14_59-Window

This would save a long separated expression such as:
2020-04-10 12_14_24-Window

Cheers

10 Likes

Agree!!

1 Like

This would be a huge timesaver! :slight_smile:

1 Like

vote +1

I tried this and it worked:

  1. Check “regex expression”
  2. enter expression (word1 | word2 | word 3 etc.)
  3. It should replace all of the words

Its a nice idea.

Ideally though it would be useful to have instances where we can type input text and then set the output text to be replaced by on a case-by-case basis, which is unique. The method you’d describe would only work on replacing all text with a single replace. Appreciate the suggestion though.

Hi Luke,

I think I’ve come up with a plugin that’d do what you’re talking about. Take a look and let me know. I currently have it as a element upfront, and I’m debating if I should take the functionality into the workflow tab or the backend.

3 Likes

Hey Ziyad,

Nice work. Yeah, for sure, would be super handy to have this in the backend so it can be run server-side.

I’ve found a few quirks, I’ll PM you with the details.

Cheers

1 Like

Nice plug-in @ziyad.elbaz :call_me_hand:

Agree with @luke2. I feel this would greatly expand the potential usecases for your plugin if it had server-side capability.

Not the end of the world using chaining in BEWF - just not overly elegant.

Cheers

1 Like

The ultimate toolkit plugin has a server side action that does exactly that.

@AliFarahat how do you do that?

Hey Ziyad, thanks a lot for this plugin. It’s working like a charm.

Just noticed that it throws an error in the console on load (I think it’s if the source of one of the parameter is dynamic).

I’ve tried to delay or condition the visibility of the element, but I keep getting that error. Not a huge deal, as everything works fine, but just thought I’d flag it.

The plugin Missing plugin / element Find & Replace Input threw the following error: TypeError: Cannot read property 'split' of null
    at eval (PLUGIN_Missing-plugin-update--Find---Replace-Input-.js:3:15)
    at https://dhtiece9044ep.cloudfront.net/package/run_debug_js/7dbd321ca3cc7deb923a44e2d1fbfa8c4071fecbee7b4fdc288c20a0abb252be/xfalse/x11:15:476168 (please report this to the plugin author)

And

The plugin Missing plugin / element Find & Replace Input threw the following error: TypeError: Cannot read property 'replaceAll' of null
    at eval (PLUGIN_Missing-plugin-update--Find---Replace-Input-.js:3:86)
    at https://dhtiece9044ep.cloudfront.net/package/run_debug_js/7dbd321ca3cc7deb923a44e2d1fbfa8c4071fecbee7b4fdc288c20a0abb252be/xfalse/x11:15:476168 (please report this to the plugin author)

It happens to me as well with no dynamic parameter.

Hey yall! Thanks for the feedback and input. I’ve been MIA for the past couple of months but now getting back into the swing of things. I’ll try to push out an update in the next couple of days that addresses:

  1. those error logs @Lucien brought up and
  2. get some server-side functionality going.

Stay tuned!

Cheers,

Ziyad

2 Likes