Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
Replace only first space to a underscore in expression
this is urgent please reply
I just added pictures but
You have got 3 part
the first mid takes all characters up to first space-- mid('mam ko ll --',1,index('mam ko ll --',' ')-1)
then you add underscore -----> &'_'&
and the second mid will add the rest of the string -> mid('mam ko ll --',index('mam ko ll --',' ')+1,len('mam ko ll --'))
Hi,
Try this
=Replace('AB CDEFG',' ' ,'_')
The AB CDEFG could be filed name
![2015-04-08 00_59_26-Text Object Properties [mam _ko ll --].png](/legacyfs/online/83061_2015-04-08 00_59_26-Text Object Properties [mam _ko ll --].png)
=mid('mam ko ll --',1,index('mam ko ll --',' ')-1)&'_'&mid('mam ko ll --',index('mam ko ll --',' ')+1,len('mam ko ll --'))
Hi,
the String has more than one spaces but want to replace only the first one.
example:
'ab cd ef gh'
output required
'ab_cd ef gh'
can you please expalin this
I just added pictures but
You have got 3 part
the first mid takes all characters up to first space-- mid('mam ko ll --',1,index('mam ko ll --',' ')-1)
then you add underscore -----> &'_'&
and the second mid will add the rest of the string -> mid('mam ko ll --',index('mam ko ll --',' ')+1,len('mam ko ll --'))
Another way
=TextBetween('mam ko ll --','',' ',1)&'_'&TextBetween('mam ko ll --',' ','',1)
I hope it is simpler:
=subfield('ab cd ef gh', ' ',1) & '_' & mid('ab cd ef gh', len(subfield('ab cd ef gh', ' ',1))+1)
can you please tell me the same for the third Space.
can you please tell me the same for the third Space.