相关文章推荐

Hey @Q_Ball ! I would recommend using a Formula tool. I would first create a new field for po number with this expression:

REGEX_Replace([Field1], "(.*?)\#.*", "$1")

This will extract P88228.

Then, I would create a second field for your line number with this expression:

REGEX_Replace([Field1], ".*\#(.*)R.*", "$1")

You will get you 10. This assumes that you will always want the cut off for the line number to occur after the last hashtag and before the R. Hope this helps!

Hi @Q_Ball ,

Here is one formula that gives you a delimited answer.  These parts can easily be parsed into separate fields.

Regex_REPLACE([Field],"^(.*?)#.*#(\d+)R.*",'$1|$2')

It will find:

^      Beginning of field

.*?    Anything up to the first # symbol

(\d+)  Whatever numbers are between the # symbol and the R

Groups found are the stuff between the parens....

Cheers,

@Q_Ball ,

This might be a little low tech, but I would just use 2 Text to Columns tools. one with # as the delimiter with 3 output columns. Using the second on the column with 10R1 in it with R as the delimiter. Unless that letter changes... In which case you could use a regex tool set to parse. Ex attached.

Best,

MSalvage

need help :How find a specific string in the all the column of excel and return that clmn
 
推荐文章