The examples a little vague, but there are definitely some tools you might look at to see if they’ll help.
First are segment variables, they’ll help with seeing what’s in the URL: https://docs.expressionengine.com/latest/templates/globals/url-segments.html
Second, conditionals. You can do one thing if segment_2 == ‘a’ and another if it == ‘b’: https://docs.expressionengine.com/latest/templates/conditionals.html (you can also use regex in conditionals).
Off hand, I’d think ‘text A’ and ‘text B’ would be different fields- and then it would be easy to show one or the other based on a url segment.
And of course for anything super custom, a custom plugin is always an option.
Hope that gives you some ideas.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.