Hey im trying to create a Regex expression to match text.
I want to match
andCode:{unknow text here}
If anyone can point me in the right direction, i know about expressions from PHP but it doesnt seem to work.Code:(*unknow text here*)
Thanks
Printable View
Hey im trying to create a Regex expression to match text.
I want to match
andCode:{unknow text here}
If anyone can point me in the right direction, i know about expressions from PHP but it doesnt seem to work.Code:(*unknow text here*)
Thanks
\{(.)*\}
and
\{(\*){1}(.)*(\*){1}\}
Cheers, is there a way to make it work for multilines? Adding the RegexOptions.Multiline flag didnt seem to have an effect.
Thanks
Not sure about this one.
Try one of these:
Code:^\{(.)*\}$
and
^\{(\*){1}(.)*(\*){1}\}$
OR
\A\{(.)*\}\Z
and
\A\{(\*){1}(.)*(\*){1}\}\Z
I found
which seem to work for multi line, but not single line.Code:[(*]\S*([^"">]+?)\S*[*)]\S*[)]
[{]\S*([^"">]+?)\S*[}]|{.*?}
Cheers
I think what you're looking for is something along these lines:
(.)(.)
| |
( )
""
[|||]