Extracting Regex pattern

yogesh.thupda

New Member
Hi,

I have string say abc ( xyz) + def (lmn) .

I want to extract the values in brackets ( with brackets) using regex pattern and store it in data item or collection.

Please suggest a code to do it.
 

VJR

Well-Known Member
Hi yogesh.thupda,

Can you share your inputs on the below questions-
1. Is there any specific reason you want to use Regular Expressions
Does it work for you if those strings can be extracted even without Regex?

2. Is the below string correct?
Is there going to be a space after the first bracket?
abc ( xyz) + def (lmn)

3. Also, is the length of 3 characters inside the bracket always fixed?
 
Last edited:

sakshi

New Member
HI
I have the below string and I want to get only the date (5/2/2018). Can you please suggest the regex expression for the same.
Wed 5/2/2018, 4:35 PM
 

VJR

Well-Known Member
Hi sakshi,

I'm not sure if you are specifically looking for a regular expression which you will find lots of them after doing a web search.
But you can also use a Calc stage having the below line where [Data1] is a Text data item containing Wed 5/2/2018, 4:35 PM

FormatDateTime([Data1], "M/d/yyyy")

Resulting data item will be 5/2/2018.
 

hamzakhan

New Member
Hi, I have a Text value Space (0-100) space "
(text)Value= (45)
I want to be able to cast it into a number to start my loop ? Any ideas who can this be done?
 
Top