- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How do I trim all characters starting from the first digit?

I have a table and I want to trim the values for one field, such that all characters from the first digits onwards are removed
for example:
"dadmin01ldk" will be trimmed to "dadmin"
"rusl90" will be trimmed to "rusl",I have a table with a field.
I want to trim all characters starting at the first digit.
For example, "dadmin02yut" will be trimmed into "dadmin"
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Try this regex-
|rex field=<yourfieldname> "^(?<String>[A-Za-z]+)"
It will trim and store result in String field
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

this works!
thank you!
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Try this, which captures all non-digits from the start of the field (replace 'yourfield' with the actual fieldname from your table):
| rex field=yourfield "^(<yourfield>\D+)"
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

could not get it to work
table clienthost | rex field=clienthost "^(\D+)"
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@sshahmoon, FYI, Above rex works too. However, ? is missing in that regex. Try this,
| rex field=yourfield "^(?<yourfield>\D+)"
Thanks,
Sandeep
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Ah, yes, my bad. Thanks for the correction.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

could not get it to work
table clienthost | rex field=clienthost "^(\D+)"
