Skip to main content
Nintex Community Menu Bar

Regular Expression - Extract the first letter from a string

  • Jan 30, 2017 4:13 PM UTC
  • 2 replies
  • 10 views
  • Translate All

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
  • Jan 30, 2017 5:06 PM UTC

You can use ^.

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

Translate

Forum|alt.badge.img+14
  • Scholar
  • Jan 31, 2017 11:58 AM UTC

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?

Translate