09-24-2008 02:43 PM
I am trying to match a pattern in a path. The path is for example, "\ \Amss02\modemdata\New\WO 4276\11243_Mar_01_2007_13 16.txt" and I want to search for the number 11243 in the path. Right now I am converting it to a string and matching a pattern of 11243 and that works. But if I want to search for 112 or 124 then it returns this path as valid, which it is not. I tried to match the pattern \112_ (adding the backslash and underscore) but the backslash is monkeying with the search I think.
Any ideas?
Tay
Solved! Go to Solution.
09-24-2008 02:52 PM - edited 09-24-2008 02:56 PM
Use a "\\" to match a single backslash. For example use pattern "\\112_" to search for "\112_"
Check the online help for details.
Typically, it might be easier to not convert to a string and use "strip path" to get the filename and then operate on it.
09-25-2008 08:50 AM
Thanks! That fixed that issue.
Tay