Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    Regex Inside Properties File

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Regex Inside Properties File
 Login/Join
 
Member
posted
I'm using a XDFileDirListAgent to find the count of files in a directory.

This directory might have other files in it, so I've created the following regex to only count the number of files I'm interested in.

\d{4}-\d{8}-\d{8}-\d{2}-\d{2}-\d{8}-\d{6}\.csv


This works fine when I have this regex inside my selection expression, but when I attempt to move it into a properties file, I always get a count of zero.

I know the properties file is working, as I have many other variables for other objects in there and those are being read fine.

Here is how I'm trying to call my regex from my properties file.

_property(_concat(_sreg(iwayhome), _sreg(myproject.propertyfileloc)), filecountregex)


Here is my regex inside of my properties file.

#File Pattern Regex
filecountregex = \d{4}-\d{8}-\d{8}-\d{2}-\d{2}-\d{8}-\d{6}\.csv


Can anyone tell me why this isn't working?

Thanks.

This message has been edited. Last edited by: benicely,


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 18 | Registered: September 13, 2012Report This Post
Member
posted Hide Post
I think you need to double all the "\" in the property file since it's interpreted as a string.

It should be like this in your property file
#File Pattern Regex
filecountregex = \\d{4}-\\d{8}-\\d{8}-\\d{2}-\\d{2}-\\d{8}-\\d{6}\\.csv


WebFocus 7.6.8
OS: Windows
iWay: 6.1.4
 
Posts: 15 | Registered: September 14, 2010Report This Post
Member
posted Hide Post
That did the trick. Thanks for your help!


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 18 | Registered: September 13, 2012Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    Regex Inside Properties File

Copyright © 1996-2020 Information Builders