1
I’m trying to build a regular expression and it’s a little difficult.
I would like you to help me, and if possible explain how the computer works in relation to this expression that I am asking for.
I need to take everything at the beginning of a string, until a string group is found, for example:
I want to pick from the beginning of the string until it is found "2.8" or "6v" or "2p".
Thank you.
http://www.regexpal.com/ this tool helps too much in the construction of regular expressions.
– relaxeaza
Are those "2.8" or "6v" or "2p" strings dynamic right? are they in an array? or will you have to type by hand?
– Sergio
No! I’m going to set something around 3 or 4 groups of Strings that will always be these
– Edvaldo Szymonek