Varun Thonse Rao

Greenhorn
+ Follow
since Feb 07, 2018
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Varun Thonse Rao

Yes.

^.*(?:RES|UDR).*+$

^.* - Indicates the beginning of the file name can start with any characters (except line break) zero or more times

(?:RES|UDR) - Indicates the keyword RES "OR" UDR appearing zero or one time

.* - RES or UDR would be present zero or more times 

+  - matches the preceding character one or more times

^ and $ - Indicates  whatever is in between them must cover the entire line end-to-end
2 weeks ago
Thanks Stephan & Tim. I tried both the options and it worked. I would use ^.*(?:RES|UDR).*+$ since the keyword RES and UDR can appear anywhere in the file name.
2 weeks ago
The RES and UDR keyword can appear anywhere.

Here is the thing. I have a directory say F:\csdata\MessageBus\Maydown_Yarn\UploadQM where two types of files would be present ( say QM_2017022019000817400_WI90_KM_RES.xml & QM_2017121114173526400_WI90_KM_UDR.xml)

I have a MQ MFT ( Product from IBM MQ) which is file transfer product. The MQ MFT resource monitor would allow to pick the  file from the monitored directory either using wild card or java regular expression. ( Please see attached screenshot)

I am looking for regular expression which I can write in "Match Pattern" column to instruct the monitor to pick the file having either "RES" or "UDR" keyword.



2 weeks ago
Hi,

Well, I would need REGEX since this would be used in MQ MFT monitor to pick the files from directory and its not java program.
2 weeks ago
Hi,

Appreciate your help in helping me with regular expression for below 2 files containing the keyword RES & UDR. The requirement is to pick only the XML files from a directory having the keyword RES or UDR ( or both). I am trying to find out regular expression matching this criteria.


QM_2017121114173526400_WI90_KM_UDR.xml

QM_2017022019000817400_WI90_KM_RES.xml

2 weeks ago