Posted By

BDOGG32 on 04/01/15


Viewed 456 times
Favorited by 2 user(s)


/ Published in: Visual Basic
Save to your folder(s)

Uses regular expressions to do string manipulation. Enter a regular expression into the required parameter and what you want the manipulation to do and it will process the string manipulation. For example if A1 contains John Doe1, Jane Doe2, John Wayne3 and you wanted to strip all the numbers out of it you could enter this formula: =RegexReplace(I22,"[^a-zA-Z, ]", ""). This strips all characters that are not a through z or a comma or space. Since all numbers are not in there then it removes them. If you wanted to strip out all alpha characters and leave only the numbers it would look like: =RegexReplace(I22,"[^1-9, ]", "")

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.