Asterisk the string

Hi guys

i have a name feilds like first name and last name

i am showing on a page like Roger Woods but i want to show it as R—r W—s
How can i do this in bubble.io?

Hey @karan_trivedi248 :wave:

You can use truncated to 1 to get the first letter from any string and then, truncated from end to 1 to get the last letter of any string.

If this name is just one field, split by ( ) (space) to cut them into pieces.

bdk_512x512 @Huseyin from Flusk | Discover the #1 Security and Monitoring Tool for Bubble

sorry i edited the question as bubble removed hyphens from he name earlier.

Once you get the first and last letters, you can add whatever you need between those.

bdk_512x512 @Huseyin from Flusk | Discover the #1 Security and Monitoring Tool for Bubble

I wam using regex to find inbetween characters excluding first and last character of string and replace it with * or whatever pattern i would like to

following is the rexgex pattern
(?<=\w{1})\w(?=\w{1})

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.