Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Jubula » Parameterized RegEx (How to add parameters to RegEx Expression)
Parameterized RegEx [message #1694639] Wed, 06 May 2015 18:47 Go to next message
Jeff Dunn is currently offline Jeff DunnFriend
Messages: 20
Registered: February 2015
Junior Member
I am looking to modify this Textpath Regex with parameters



'Hosts/CW01.*:10947.*' This one works

'Hosts/CW01.*:=PORT.*'

I have searched and tried \=, \{\} single/double quotes.

Any one no if this is possible.
Re: Parameterized RegEx [message #1694679 is a reply to message #1694639] Thu, 07 May 2015 05:50 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Hi Jeff,

I think that the problem is that you have included the =PORT in the single quotes - these escape all Jubula-specific characters, including the reference sign (=).
Try:
'Hosts/CW01.*:'={PORT}.*

Best regards,
Alex
Re: Parameterized RegEx [message #1694768 is a reply to message #1694679] Thu, 07 May 2015 16:27 Go to previous messageGo to next message
Jeff Dunn is currently offline Jeff DunnFriend
Messages: 20
Registered: February 2015
Junior Member
Alex,
That worked thanks. I have one last question related to Regular Expressions. How to set it up to ignore case ?
Re: Parameterized RegEx [message #1694807 is a reply to message #1694768] Fri, 08 May 2015 06:20 Go to previous messageGo to next message
Alexandra Schladebeck is currently offline Alexandra SchladebeckFriend
Messages: 1613
Registered: July 2009
Senior Member
Hi Jeff,

I'm glad that worked! I'm not the regex guru, I have to admit, but I *think* that you can do something like this [A|a].

I just checked our examples in the docs and they seem to confirm it:
http://testing.bredex.de/files/content/software/documentation/userManual/tasks/useMatchingAndRegex/regex.html

Best regards,
Alex
Re: Parameterized RegEx [message #1695036 is a reply to message #1694807] Mon, 11 May 2015 14:00 Go to previous messageGo to next message
Jeff Dunn is currently offline Jeff DunnFriend
Messages: 20
Registered: February 2015
Junior Member
Alex,

The [Aa] works, but for me I need to ignore case, I do not know the value of the incoming string to format it properly
Re: Parameterized RegEx [message #1695044 is a reply to message #1695036] Mon, 11 May 2015 14:50 Go to previous messageGo to next message
Joost Andrae is currently offline Joost AndraeFriend
Messages: 12
Registered: January 2014
Junior Member
Usually the (?i) is used fore ignore case. Maybe this helps....

Kind regards, Joost
Re: Parameterized RegEx [message #1695213 is a reply to message #1695044] Tue, 12 May 2015 16:40 Go to previous message
Jeff Dunn is currently offline Jeff DunnFriend
Messages: 20
Registered: February 2015
Junior Member
That worked thanks. I now have my test case fully working Very Happy

[Updated on: Tue, 12 May 2015 16:40]

Report message to a moderator

Previous Topic:HTML <div> Click not firing in page
Next Topic:How to define keyboard mappings
Goto Forum:
  


Current Time: Tue Apr 23 16:20:22 GMT 2024

Powered by FUDForum. Page generated in 0.03868 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top