Skip to main content
Nintex Community Menu Bar

Regular Expression - Extract the first letter from a string

  • January 30, 2017
  • 2 replies
  • 10 views

Forum|alt.badge.img+1

I am trying to extract the first letter from a string.

For example: If the String is "Customer"

                      I want the first letter 'C' as the result

Can any one advise on this please?

2 replies

Forum|alt.badge.img+9
  • January 30, 2017

You can use ^.

This is a good site (RegExr: Learn, Build, & Test RegEx ) to practice regEx and figure out solutions. 


Forum|alt.badge.img+14
  • Scholar
  • January 31, 2017

where exactly do you need that?

I do not want to say it's not possible with regex, but wouldn't it be much easier with simple substring() function?